- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidateListSetsAndMaps (0.16 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/listtype/validation.go
"k8s.io/apimachinery/pkg/util/validation/field" "k8s.io/apiextensions-apiserver/pkg/apiserver/schema" ) // ValidateListSetsAndMaps validates that arrays with x-kubernetes-list-type "map" and "set" fulfill the uniqueness // invariants for the keys (maps) and whole elements (sets). func ValidateListSetsAndMaps(fldPath *field.Path, s *schema.Structural, obj map[string]interface{}) field.ErrorList { if s == nil || obj == nil { return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 16 02:47:24 UTC 2021 - 5.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/status_strategy.go
// ratcheting validation of x-kubernetes-list-type value map and set if newErrs := structurallisttype.ValidateListSetsAndMaps(nil, a.structuralSchema, uNew.Object); len(newErrs) > 0 { if oldErrs := structurallisttype.ValidateListSetsAndMaps(nil, a.structuralSchema, uOld.Object); len(oldErrs) == 0 { errs = append(errs, newErrs...) } } // validate x-kubernetes-validations rules
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 18 22:16:10 UTC 2023 - 4.6K bytes - Viewed (0)