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: 26 Imported by: 1

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-uniteddeployment": &UnitedDeploymentCreateUpdateHandler{},
	}
)

Functions

func ValidateUnitedDeploymentUpdate

func ValidateUnitedDeploymentUpdate(unitedDeployment, oldUnitedDeployment *appsv1alpha1.UnitedDeployment) field.ErrorList

ValidateUnitedDeploymentUpdate tests if required fields in the UnitedDeployment are set.

Types

type UnitedDeploymentCreateUpdateHandler

type UnitedDeploymentCreateUpdateHandler struct {

	// Decoder decodes objects
	Decoder *admission.Decoder
}

UnitedDeploymentCreateUpdateHandler handles UnitedDeployment

func (*UnitedDeploymentCreateUpdateHandler) Handle

Handle handles admission requests.

func (*UnitedDeploymentCreateUpdateHandler) InjectDecoder

InjectDecoder injects the decoder into the UnitedDeploymentCreateUpdateHandler

Jump to

Keyboard shortcuts

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