Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookController ¶
type WebhookController struct {
// contains filtered or unexported fields
}
WebhookController define the controller that manages(create, update and delete) the webhook configurations. it implements the Runnable interface from https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/manager#Runnable
func NewWebhookController ¶
func NewWebhookController( client client.Client, mwh *admissionregistrationv1.MutatingWebhookConfiguration, vwh *admissionregistrationv1.ValidatingWebhookConfiguration, ) *WebhookController
NewWebhookController create the WebhookController.
func (*WebhookController) Start ¶
func (wc *WebhookController) Start(ctx context.Context) error
Start runs the WebhookController with the given context. it will create the corresponding webhook configuration with the client at starting and remove it when context done singal is received currently the controller will not watch the change of the webhook configurations.
Click to show internal directories.
Click to hide internal directories.