namespacedeletion

package
v1.97.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// HandlerName is the name of this admission webhook handler.
	HandlerName = "namespace_validator"
	// WebhookPath is the HTTP handler path for this admission webhook handler.
	WebhookPath = "/webhooks/validate-namespace-deletion"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v1.60.0

type Handler struct {
	Logger    logr.Logger
	APIReader client.Reader
	Client    client.Client
}

Handler handles namespace deletions.

func (*Handler) AddToManager added in v1.60.0

func (h *Handler) AddToManager(ctx context.Context, mgr manager.Manager) error

AddToManager adds Handler to the given manager.

func (*Handler) ValidateCreate added in v1.60.0

func (h *Handler) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)

ValidateCreate returns nil (not implemented by this handler).

func (*Handler) ValidateDelete added in v1.60.0

func (h *Handler) ValidateDelete(ctx context.Context, _ runtime.Object) (admission.Warnings, error)

ValidateDelete validates the namespace deletion.

func (*Handler) ValidateUpdate added in v1.60.0

func (h *Handler) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)

ValidateUpdate returns nil (not implemented by this handler).

Jump to

Keyboard shortcuts

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