Documentation ¶
Index ¶
- Variables
- func ValidatePersistentVolumeClaimRetentionPolicy(policy *appsv1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy, ...) field.ErrorList
- func ValidatePersistentVolumeClaimRetentionPolicyType(policy appsv1beta1.PersistentVolumeClaimRetentionPolicyType, ...) field.ErrorList
- func ValidateStatefulSetUpdate(statefulSet, oldStatefulSet *appsv1beta1.StatefulSet) field.ErrorList
- type StatefulSetCreateUpdateHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HandlerMap contains admission webhook handlers HandlerMap = map[string]admission.Handler{ "validate-apps-kruise-io-statefulset": &StatefulSetCreateUpdateHandler{}, } )
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 ¶
func (h *StatefulSetCreateUpdateHandler) Handle(ctx context.Context, req admission.Request) admission.Response
Handle handles admission requests.
func (*StatefulSetCreateUpdateHandler) InjectDecoder ¶
func (h *StatefulSetCreateUpdateHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the StatefulSetCreateUpdateHandler
Click to show internal directories.
Click to hide internal directories.