Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for XPreserveUnknownFields (0.37 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/pruning/algorithm_test.go

    							Extensions: structuralschema.Extensions{XPreserveUnknownFields: true},
    						},
    						"pruning": {
    							Generic: structuralschema.Generic{Type: "object"},
    						},
    					},
    				},
    				"preserving": {
    					Generic:    structuralschema.Generic{Type: "object"},
    					Extensions: structuralschema.Extensions{XPreserveUnknownFields: true},
    					Properties: map[string]structuralschema.Structural{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation.go

    func validateExtensions(x *Extensions, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    
    	if x.XIntOrString && x.XPreserveUnknownFields {
    		allErrs = append(allErrs, field.Invalid(fldPath.Child("x-kubernetes-preserve-unknown-fields"), x.XPreserveUnknownFields, "must be false if x-kubernetes-int-or-string is true"))
    	}
    	if x.XIntOrString && x.XEmbeddedResource {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/common/schemas.go

    //
    // Schemas with XPreserveUnknownFields not exposed unless they are objects. Array and "maps" schemas
    // are not exposed if their items or additionalProperties schemas are not exposed. Object Properties are not exposed
    // if their schema is not exposed.
    //
    // The CEL declaration for objects with XPreserveUnknownFields does not expose unknown fields.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 18:00:45 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1/jsonschemaprops.go

    	b.Nullable = &value
    	return b
    }
    
    // WithXPreserveUnknownFields sets the XPreserveUnknownFields field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the XPreserveUnknownFields field is set to the value of the last call.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 28 12:38:10 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/algorithm_test.go

    						},
    					},
    				},
    				"preserving": {
    					Generic: structuralschema.Generic{Type: "object"},
    					Extensions: structuralschema.Extensions{
    						XEmbeddedResource:      true,
    						XPreserveUnknownFields: true,
    					},
    				},
    				"nested": {
    					Generic: structuralschema.Generic{Type: "object"},
    					Extensions: structuralschema.Extensions{
    						XEmbeddedResource: true,
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 02:09:41 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1/jsonschemaprops.go

    	b.Nullable = &value
    	return b
    }
    
    // WithXPreserveUnknownFields sets the XPreserveUnknownFields field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the XPreserveUnknownFields field is set to the value of the last call.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 28 12:38:10 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/validation.go

    	}
    
    	if postProcess != nil {
    		if err := postProcess(out); err != nil {
    			return err
    		}
    	}
    
    	if in.XPreserveUnknownFields != nil {
    		out.VendorExtensible.AddExtension("x-kubernetes-preserve-unknown-fields", *in.XPreserveUnknownFields)
    	}
    	if in.XEmbeddedResource {
    		out.VendorExtensible.AddExtension("x-kubernetes-embedded-resource", true)
    	}
    	if len(in.XListMapKeys) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 18:23:28 UTC 2023
    - 15K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go

    			},
    			expected: new(spec.Schema).
    				WithExample(testStr),
    			expectDiff: true,
    		},
    		{
    			name: "preserve-unknown-fields in arrays",
    			in: &apiextensions.JSONSchemaProps{
    				XPreserveUnknownFields: pointer.BoolPtr(true),
    				Type:                   "array",
    				Items: &apiextensions.JSONSchemaPropsOrArray{Schema: &apiextensions.JSONSchemaProps{
    					Type: "string",
    				}},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder_test.go

    				}
    				validation = &apiextensionsv1.CustomResourceValidation{
    					OpenAPIV3Schema: v1Schema,
    				}
    			}
    			if tt.preserveUnknownFields != nil && *tt.preserveUnknownFields {
    				validation.OpenAPIV3Schema.XPreserveUnknownFields = utilpointer.BoolPtr(true)
    			}
    
    			// TODO: mostly copied from the test above. reuse code to cleanup
    			got, err := BuildOpenAPIV2(&apiextensionsv1.CustomResourceDefinition{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy_test.go

    					Validation: &apiextensions.CustomResourceValidation{
    						OpenAPIV3Schema: &apiextensions.JSONSchemaProps{Type: "object", XPreserveUnknownFields: pointer.BoolPtr(true)},
    					},
    				},
    				Status: apiextensions.CustomResourceDefinitionStatus{
    					StoredVersions: []string{"v1"},
    				},
    			}
    			var oldCRD *apiextensions.CustomResourceDefinition
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 44.6K bytes
    - Viewed (0)
Back to top