- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ValidatePersistentVolume (0.94 sec)
-
pkg/registry/core/persistentvolume/strategy.go
persistentvolume := obj.(*api.PersistentVolume) opts := validation.ValidationOptionsForPersistentVolume(persistentvolume, nil) errorList := validation.ValidatePersistentVolume(persistentvolume, opts) return append(errorList, volumevalidation.ValidatePersistentVolume(persistentvolume)...) } // WarningsOnCreate returns warnings for the creation of the given object.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 03:58:36 UTC 2023 - 7.6K bytes - Viewed (0) -
pkg/volume/validation/pv_validation.go
"path/filepath" "strings" "k8s.io/apimachinery/pkg/util/validation/field" api "k8s.io/kubernetes/pkg/apis/core" ) // ValidatePersistentVolume validates PV object for plugin specific validation // We can put here validations which are specific to volume types. func ValidatePersistentVolume(pv *api.PersistentVolume) field.ErrorList { return checkMountOption(pv) } func checkMountOption(pv *api.PersistentVolume) field.ErrorList {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 09 11:14:08 UTC 2017 - 2.2K bytes - Viewed (0) -
pkg/volume/validation/pv_validation_test.go
PersistentVolumeSource: api.PersistentVolumeSource{ HostPath: &api.HostPathVolumeSource{Path: "/a/.."}, }, }), }, } for name, scenario := range scenarios { errs := ValidatePersistentVolume(scenario.volume) if len(errs) == 0 && scenario.isExpectedFailure { t.Errorf("Unexpected success for scenario: %s", name) } if len(errs) > 0 && !scenario.isExpectedFailure {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 11:12:06 UTC 2022 - 3.2K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
} if pvSpec.CSI == nil { allErrs = append(allErrs, field.Required(fldPath.Child("csi"), "has to be specified when using volumeAttributesClassName")) } } return allErrs } func ValidatePersistentVolume(pv *core.PersistentVolume, opts PersistentVolumeSpecValidationOptions) field.ErrorList { metaPath := field.NewPath("metadata") allErrs := ValidateObjectMeta(&pv.ObjectMeta, false, ValidatePersistentVolumeName, metaPath)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (0) -
pkg/apis/core/validation/validation_test.go
opts := ValidationOptionsForPersistentVolume(scenario.volume, nil) errs := ValidatePersistentVolume(scenario.volume, opts) if len(errs) == 0 && scenario.isExpectedFailure { t.Errorf("Unexpected success for scenario: %s", name) } if len(errs) > 0 && !scenario.isExpectedFailure {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0)