validating

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string]admission.Handler{
		"validate-apps-kruise-io-v1alpha1-daemonset": &DaemonSetCreateUpdateHandler{},
	}
)
View Source
var ValidateDaemonSetName = genericvalidation.NameIsDNSSubdomain

ValidateDaemonSetName can be used to check whether the given daemon set name is valid. Prefix indicates this name will be used as part of generation, in which case trailing dashes are allowed.

Functions

This section is empty.

Types

type DaemonSetCreateUpdateHandler

type DaemonSetCreateUpdateHandler struct {
	// Decoder decodes objects
	Decoder *admission.Decoder
}

DaemonSetCreateUpdateHandler handles DaemonSet

func (*DaemonSetCreateUpdateHandler) Handle

Handle handles admission requests.

func (*DaemonSetCreateUpdateHandler) InjectDecoder

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

InjectDecoder injects the decoder into the DaemonSetCreateUpdateHandler

Jump to

Keyboard shortcuts

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