validating

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerGetterMap contains admission webhook handlers
	HandlerGetterMap = map[string]types.HandlerGetter{
		"validate-apps-kruise-io-statefulset": func(mgr manager.Manager) admission.Handler {
			return &StatefulSetCreateUpdateHandler{Decoder: admission.NewDecoder(mgr.GetScheme())}
		},
	}
)

Functions

func ValidatePersistentVolumeClaimRetentionPolicy added in v1.1.0

func ValidatePersistentVolumeClaimRetentionPolicy(policy *appsv1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy, fldPath *field.Path) field.ErrorList

func ValidatePersistentVolumeClaimRetentionPolicyType added in v1.1.0

func ValidatePersistentVolumeClaimRetentionPolicyType(policy appsv1beta1.PersistentVolumeClaimRetentionPolicyType, fldPath *field.Path) field.ErrorList

func ValidateStatefulSetUpdate

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

ValidateStatefulSetUpdate tests if required fields in the StatefulSet are set.

Types

type StatefulSetCreateUpdateHandler

type StatefulSetCreateUpdateHandler struct {

	// Decoder decodes objects
	Decoder *admission.Decoder
}

StatefulSetCreateUpdateHandler handles StatefulSet

func (*StatefulSetCreateUpdateHandler) Handle

Handle handles admission requests.

Jump to

Keyboard shortcuts

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