Documentation ¶
Overview ¶
Package webhooks implements webhooks.
Index ¶
- Constants
- type InClusterIPPool
- func (webhook *InClusterIPPool) Default(_ context.Context, obj runtime.Object) error
- func (webhook *InClusterIPPool) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *InClusterIPPool) ValidateCreate(_ context.Context, obj runtime.Object) error
- func (webhook *InClusterIPPool) ValidateDelete(ctx context.Context, obj runtime.Object) (reterr error)
- func (webhook *InClusterIPPool) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
Constants ¶
View Source
const ( // SkipValidateDeleteWebhookAnnotation is an annotation that can be applied // to the InClusterIPPool or GlobalInClusterIPPool to skip delete // validation. Necessary for clusterctl move to work as expected. SkipValidateDeleteWebhookAnnotation = "ipam.cluster.x-k8s.io/skip-validate-delete-webhook" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InClusterIPPool ¶
InClusterIPPool implements a validating and defaulting webhook for InClusterIPPool and GlobalInClusterIPPool.
func (*InClusterIPPool) SetupWebhookWithManager ¶
func (webhook *InClusterIPPool) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*InClusterIPPool) ValidateCreate ¶
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type.
func (*InClusterIPPool) ValidateDelete ¶
func (webhook *InClusterIPPool) ValidateDelete(ctx context.Context, obj runtime.Object) (reterr error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type.
func (*InClusterIPPool) ValidateUpdate ¶
func (webhook *InClusterIPPool) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type.
Click to show internal directories.
Click to hide internal directories.