validating

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerBuilderMap contains admission webhook handlers builder
	HandlerBuilderMap = map[string]framework.HandlerBuilder{
		"validate-node": &nodeValidateBuilder{},
	}
)

Functions

func ShouldIgnoreIfNotNode

func ShouldIgnoreIfNotNode(req admission.Request) bool

Types

type NodeValidatingHandler

type NodeValidatingHandler struct {
	Client client.Client

	// Decoder decodes objects
	Decoder admission.Decoder
}

func NewNodeValidatingHandler

func NewNodeValidatingHandler(c client.Client, d admission.Decoder) *NodeValidatingHandler

func (*NodeValidatingHandler) Handle

Handle handles admission requests.

func (*NodeValidatingHandler) InjectClient

func (h *NodeValidatingHandler) InjectClient(c client.Client) error

InjectClient injects the client into the ValidatingHandler

func (*NodeValidatingHandler) InjectDecoder

func (h *NodeValidatingHandler) InjectDecoder(d admission.Decoder) error

InjectDecoder injects the decoder into the ValidatingHandler

Jump to

Keyboard shortcuts

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