validating

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Builders contain admission webhook builders
	Builders = map[string]*builder.WebhookBuilder{}
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string][]admission.Handler{}
)

Functions

func ValidateStatefulSetUpdate

func ValidateStatefulSetUpdate(statefulSet, oldStatefulSet *appsv1alpha1.StatefulSet) field.ErrorList

ValidateStatefulSetUpdate tests if required fields in the StatefulSet are set.

Types

type StatefulSetCreateUpdateHandler

type StatefulSetCreateUpdateHandler struct {

	// Decoder decodes objects
	Decoder types.Decoder
}

StatefulSetCreateUpdateHandler handles StatefulSet

func (*StatefulSetCreateUpdateHandler) Handle

Handle handles admission requests.

func (*StatefulSetCreateUpdateHandler) InjectDecoder

func (h *StatefulSetCreateUpdateHandler) InjectDecoder(d types.Decoder) error

InjectDecoder injects the decoder into the StatefulSetCreateUpdateHandler

Jump to

Keyboard shortcuts

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