- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidateVolumeAttributesClass (0.17 sec)
-
pkg/registry/storage/volumeattributesclass/strategy.go
} func (volumeAttributesClassStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList { volumeAttributesClass := obj.(*storage.VolumeAttributesClass) return validation.ValidateVolumeAttributesClass(volumeAttributesClass) } // WarningsOnCreate returns warnings for the creation of the given object. func (volumeAttributesClassStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 03:18:56 UTC 2023 - 3K bytes - Viewed (0) -
pkg/apis/storage/validation/validation.go
allErrs = append(allErrs, field.Invalid(field.NewPath("storageClassName"), capacity.StorageClassName, "field is immutable")) } return allErrs } // ValidateVolumeAttributesClass validates a VolumeAttributesClass. func ValidateVolumeAttributesClass(volumeAttributesClass *storage.VolumeAttributesClass) field.ErrorList {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 00:47:13 UTC 2024 - 25.5K bytes - Viewed (0) -
pkg/apis/storage/validation/validation_test.go
"foo-parameter3": "", }, }} // Success cases are expected to pass validation. for testName, v := range successCases { if errs := ValidateVolumeAttributesClass(&v); len(errs) != 0 { t.Errorf("Expected success for %d, got %v", testName, errs) } } // generate a map longer than maxParameterSize longParameters := make(map[string]string)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 69.7K bytes - Viewed (0)