webhook

package
v0.0.0-...-d67e381 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotImplemented = errors.New("not implemented")

Functions

This section is empty.

Types

type ModuleValidator

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

func NewModuleValidator

func NewModuleValidator(logger logr.Logger) *ModuleValidator

func (*ModuleValidator) SetupWebhookWithManager

func (m *ModuleValidator) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ModuleValidator) ValidateCreate

func (m *ModuleValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*ModuleValidator) ValidateDelete

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

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

func (*ModuleValidator) ValidateUpdate

func (m *ModuleValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

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

type NamespaceValidator

type NamespaceValidator struct{}

func (*NamespaceValidator) SetupWebhookWithManager

func (nd *NamespaceValidator) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*NamespaceValidator) ValidateCreate

func (nd *NamespaceValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

func (*NamespaceValidator) ValidateDelete

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

func (*NamespaceValidator) ValidateUpdate

func (nd *NamespaceValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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