webhooks

package
v0.1.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package webhooks implements webhooks.

Index

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 InfobloxIPPool

type InfobloxIPPool struct {
	Client client.Reader
}

InfobloxIPPool implements a validating and defaulting webhook for InfobloxIPPool.

func (*InfobloxIPPool) Default

func (webhook *InfobloxIPPool) Default(_ context.Context, _ runtime.Object) error

Default satisfies the defaulting webhook interface.

func (*InfobloxIPPool) SetupWebhookWithManager

func (webhook *InfobloxIPPool) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*InfobloxIPPool) ValidateCreate

func (webhook *InfobloxIPPool) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type.

func (*InfobloxIPPool) ValidateDelete

func (webhook *InfobloxIPPool) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type.

func (*InfobloxIPPool) ValidateUpdate

func (webhook *InfobloxIPPool) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type.

Jump to

Keyboard shortcuts

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