Documentation
¶
Index ¶
- Variables
- func GetDefaultStorageClass(c client.Client) (*storagev1.StorageClass, error)
- func ValidatePersistentVolumeClaimRetentionPolicy(policy *appsv1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy, ...) field.ErrorList
- func ValidatePersistentVolumeClaimRetentionPolicyType(policy appsv1beta1.PersistentVolumeClaimRetentionPolicyType, ...) field.ErrorList
- func ValidateStatefulSetUpdate(statefulSet, oldStatefulSet *appsv1beta1.StatefulSet) field.ErrorList
- func ValidateVolumeClaimTemplateUpdate(c client.Client, sts, oldSts *appsv1beta1.StatefulSet) field.ErrorList
- type StatefulSetCreateUpdateHandler
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{Client: mgr.GetClient(), Decoder: admission.NewDecoder(mgr.GetScheme())} }, } )
Functions ¶
func GetDefaultStorageClass ¶ added in v1.8.0
func GetDefaultStorageClass(c client.Client) (*storagev1.StorageClass, error)
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.
func ValidateVolumeClaimTemplateUpdate ¶ added in v1.8.0
func ValidateVolumeClaimTemplateUpdate(c client.Client, sts, oldSts *appsv1beta1.StatefulSet) field.ErrorList
ValidateVolumeClaimTemplateUpdate tests if only size expand when sc allow expansion.
Types ¶
type StatefulSetCreateUpdateHandler ¶
type StatefulSetCreateUpdateHandler struct { // To use the client, you need to do the following: // - uncomment it // - import sigs.k8s.io/controller-runtime/pkg/client // - uncomment the InjectClient method at the bottom of this file. Client client.Client // Decoder decodes objects Decoder admission.Decoder }
StatefulSetCreateUpdateHandler handles StatefulSet
Click to show internal directories.
Click to hide internal directories.