- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateClass (0.11 sec)
-
pkg/apis/resource/validation/validation.go
allErrs = append(allErrs, field.Invalid(fldPath.Child("namespace"), ref.Namespace, msg)) } } return allErrs } // ValidateClass validates a ResourceClass. func ValidateClass(resourceClass *resource.ResourceClass) field.ErrorList { allErrs := corevalidation.ValidateObjectMeta(&resourceClass.ObjectMeta, false, corevalidation.ValidateClassName, field.NewPath("metadata"))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 28.3K bytes - Viewed (0) -
pkg/apis/resource/validation/validation_resourceclass_test.go
// Must not be empty. } return class }(), }, } for name, scenario := range scenarios { t.Run(name, func(t *testing.T) { errs := ValidateClass(scenario.class) assert.Equal(t, scenario.wantFailures, errs) }) } } func TestValidateClassUpdate(t *testing.T) { validClass := testClass("foo", "valid") scenarios := map[string]struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 10.6K bytes - Viewed (0)