webhookcert

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Overview

Package webhookcert automatically manages the caBundle value for a Kubernetes admission webhook.

It is inspired by Knative's webhook package (https://github.com/knative/pkg/tree/master/webhook) but does not depend on the rest of the Knative ecosystem, instead integrating with controller-runtime.

This package exposes a method, AddReconcilerToManager, that should be used with an already-instantiated controller-runtime Manager to add this automation to your existing controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddReconcilerToManager

func AddReconcilerToManager(mgr manager.Manager, secretKey client.ObjectKey, opts ...Option) error

Types

type Option

type Option func(r *Reconciler)

func WithMutatingWebhookConfiguration

func WithMutatingWebhookConfiguration(name string) Option

func WithValidatingWebhookConfiguration

func WithValidatingWebhookConfiguration(name string) Option

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(cl client.Client, opts ...Option) *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (res reconcile.Result, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL