validating

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 23 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-podprobemarker": &PodProbeMarkerCreateUpdateHandler{},
	}
)

Functions

func ValidatePortNumOrName added in v1.6.0

func ValidatePortNumOrName(port intstr.IntOrString, fldPath *field.Path) field.ErrorList

Types

type PodProbeMarkerCreateUpdateHandler

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

PodProbeMarkerCreateUpdateHandler handles PodProbeMarker

func (*PodProbeMarkerCreateUpdateHandler) Handle

Handle handles admission requests.

func (*PodProbeMarkerCreateUpdateHandler) InjectClient

InjectClient injects the client into the PodProbeMarkerCreateUpdateHandler

func (*PodProbeMarkerCreateUpdateHandler) InjectDecoder

InjectDecoder injects the decoder into the PodProbeMarkerCreateUpdateHandler

Jump to

Keyboard shortcuts

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