- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for returnUnknownFieldPaths (0.64 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/algorithm.go
DropInvalidFields bool // ReturnUnknownFieldPaths will return the paths to fields that are not // recognized as part of the schema. ReturnUnknownFieldPaths bool } // Coerce checks types of embedded ObjectMeta and TypeMeta and prunes unknown fields inside the former. // It does coerce ObjectMeta and TypeMeta at the root if isResourceRoot is true.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 18 14:55:12 UTC 2022 - 5.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce_test.go
dropMalformedFields: true, returnUnknownFieldPaths: true, expectedObject: &metav1.ObjectMeta{ Name: "my-meta", Labels: map[string]string{ "foo": "bar", }, }, }, } for _, tc := range testcases { opts := ObjectMetaOptions{ ReturnUnknownFieldPaths: tc.returnUnknownFieldPaths, DropMalformedFields: tc.dropMalformedFields, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 12.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce.go
// but of an invalid type (i.e. cause an error when unmarshaling, rather // than being dropped or causing a strictErr). DropMalformedFields bool // ReturnUnknownFieldPaths will return the paths to fields that are not // recognized as part of the schema. ReturnUnknownFieldPaths bool // ParentPath provides the current path up to the given ObjectMeta. // If nil, the metadata is assumed to be at the root of the object. ParentPath *field.Path
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 18 14:55:12 UTC 2022 - 5.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go
} func (s unstructuredNegotiatedSerializer) DecoderToVersion(decoder runtime.Decoder, gv runtime.GroupVersioner) runtime.Decoder { returnUnknownFieldPaths := false if serializer, ok := decoder.(*json.Serializer); ok { returnUnknownFieldPaths = serializer.IsStrict() }
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/schema/objectmeta/algorithm_test.go
t.Fatal(err) } err, unknownFields := CoerceWithOptions(nil, in, tt.schema, tt.includeRoot, CoerceOptions{ DropInvalidFields: tt.dropInvalidFields, ReturnUnknownFieldPaths: true, }) if tt.expectedError && err == nil { t.Error("expected error, but did not get any") } else if !tt.expectedError && err != nil { t.Errorf("expected no error, but got: %v", err)
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/customresource_handler_test.go
repairGeneration: true, structuralSchemas: structuralSchemas, structuralSchemaGK: schema.GroupKind{ Group: "stable.example.com", Kind: "MultiVersion", }, returnUnknownFieldPaths: tc.strictDecoding, preserveUnknownFields: tc.preserveUnknownFields, }, } obj, _, err := decoder.Decode([]byte(tc.body), nil, nil) if obj != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 13 15:27:39 UTC 2023 - 34.6K bytes - Viewed (0)