- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for structuralSchemas (0.21 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go
return versioning.NewCodec(nil, d, runtime.UnsafeObjectConvertor(Scheme), Scheme, Scheme, unstructuredDefaulter{ delegate: Scheme, structuralSchemas: s.structuralSchemas, structuralSchemaGK: s.structuralSchemaGK,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 52.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 13 15:27:39 UTC 2023 - 34.6K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/prunenulls_test.go
Generic: structuralschema.Generic{ Default: structuralschema.JSON{Object: "foo"}, }, }, "4"}, {"scalar array", "[1,null]", nil, "[1,null]"}, {"object array", `[{"a":null},{"b":null},{"c":null},{"d":null},{"e":null}]`, &structuralschema.Structural{ Items: &structuralschema.Structural{ Properties: map[string]structuralschema.Structural{ "a": { Generic: structuralschema.Generic{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 03 06:51:04 UTC 2023 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go
}, }, "4"}, {"scalar array", "[1,2]", &structuralschema.Structural{ Items: &structuralschema.Structural{ Generic: structuralschema.Generic{ Default: structuralschema.JSON{Object: "foo"}, }, }, }, "[1,2]"}, {"object array", `[{"a":1},{"b":1},{"c":1}]`, &structuralschema.Structural{ Items: &structuralschema.Structural{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 6.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/pruning/algorithm_test.go
{name: "scalar", json: "4", schema: &structuralschema.Structural{}, expectedObject: "4"}, {name: "scalar array", json: "[1,2]", schema: &structuralschema.Structural{ Items: &structuralschema.Structural{}, }, expectedObject: "[1,2]"}, {name: "object array", json: `[{"a":1},{"b":1},{"a":1,"b":2,"c":3}]`, schema: &structuralschema.Structural{ Items: &structuralschema.Structural{ Properties: map[string]structuralschema.Structural{ "a": {},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 20.3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/algorithm_test.go
} } } } `, schema: &structuralschema.Structural{ Generic: structuralschema.Generic{Type: "object"}, Properties: map[string]structuralschema.Structural{ "pruned": { Generic: structuralschema.Generic{Type: "object"}, Extensions: structuralschema.Extensions{ XEmbeddedResource: true, }, Properties: map[string]structuralschema.Structural{ "spec": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 23 02:09:41 UTC 2022 - 12.3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/prunenulls.go
*/ package defaulting import structuralschema "k8s.io/apiextensions-apiserver/pkg/apiserver/schema" func isNonNullableNonDefaultableNull(x interface{}, s *structuralschema.Structural) bool { return x == nil && s != nil && s.Generic.Nullable == false && s.Default.Object == nil } func getSchemaForField(field string, s *structuralschema.Structural) *structuralschema.Structural { if s == nil { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 06 03:49:29 UTC 2020 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/validation_test.go
schema := &structuralschema.Structural{ Properties: map[string]structuralschema.Structural{ "embedded": {Extensions: structuralschema.Extensions{XEmbeddedResource: true}}, "nested": { Extensions: structuralschema.Extensions{XEmbeddedResource: true}, Properties: map[string]structuralschema.Structural{ "embedded": {Extensions: structuralschema.Extensions{XEmbeddedResource: true}}, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/pruning/algorithm.go
// It returns the set of fields that it prunes if opts.TrackUnknownFieldPaths is true func PruneWithOptions(obj interface{}, s *structuralschema.Structural, isResourceRoot bool, opts structuralschema.UnknownFieldPathOptions) []string { if isResourceRoot { if s == nil { s = &structuralschema.Structural{} } if !s.XEmbeddedResource { clone := *s clone.XEmbeddedResource = true s = &clone } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 18 14:55:12 UTC 2022 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go
errs = append(errs, schemaobjectmeta.Validate(nil, uNew.Object, a.structuralSchema, false)...) // ratcheting validation of x-kubernetes-list-type value map and set if oldErrs := structurallisttype.ValidateListSetsAndMaps(nil, a.structuralSchema, uOld.Object); len(oldErrs) == 0 { errs = append(errs, structurallisttype.ValidateListSetsAndMaps(nil, a.structuralSchema, uNew.Object)...) } // validate x-kubernetes-validations rules
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 21:22:34 UTC 2024 - 14.9K bytes - Viewed (0)