Help us shape the future of Go! Take the 2026 Go Developer Survey

namespace

package
v1.154.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Logger        logr.Logger
	RuntimeClient client.Client
}

Handler performs validation.

func (*Handler) AddToManager

func (h *Handler) AddToManager(mgr manager.Manager) error

AddToManager adds Handler to the given manager.

func (*Handler) ValidateCreate

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

ValidateCreate performs the validation.

func (*Handler) ValidateDelete

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

ValidateDelete performs the validation.

func (*Handler) ValidateUpdate

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

ValidateUpdate performs the validation.

Jump to

Keyboard shortcuts

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