webhook

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureValidatingWebhookRegistration

func EnsureValidatingWebhookRegistration(
	ctx context.Context, client *kubernetes.Clientset, controllerNamespace string,
) (checkConnectivityToWebhook func() error, cleanup func(), err error)

EnsureValidatingWebhookRegistration registers a validating webhook and configures connectivity for the webhook defined in kubernetes manifests. When successful, it returns a function to check connectivity to the webhook (should be called after bootstrapping the controller) and a cleanup function to remove the webhook registration and associated resources. When an error is returned, no resources are created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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