Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for XListMapKeys (6.74 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/listtype/validation_test.go

    							XListType:    strPtr("map"),
    							XListMapKeys: []string{"a"},
    						},
    					},
    					"integers": {
    						Generic: schema.Generic{
    							Type: "array",
    						},
    						Items: &schema.Structural{
    							Generic: schema.Generic{
    								Type: "integer",
    							},
    						},
    						Extensions: schema.Extensions{
    							XListType:    strPtr("map"),
    							XListMapKeys: []string{"a"},
    						},
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/kubeopenapi.go

    	}
    	if x.XIntOrString {
    		ret.VendorExtensible.AddExtension("x-kubernetes-int-or-string", true)
    	}
    	if len(x.XListMapKeys) > 0 {
    		ret.VendorExtensible.AddExtension("x-kubernetes-list-map-keys", x.XListMapKeys)
    	}
    	if x.XListType != nil {
    		ret.VendorExtensible.AddExtension("x-kubernetes-list-type", *x.XListType)
    	}
    	if x.XMapType != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/zz_generated.deepcopy.go

    )
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *Extensions) DeepCopyInto(out *Extensions) {
    	*out = *in
    	if in.XListMapKeys != nil {
    		in, out := &in.XListMapKeys, &out.XListMapKeys
    		*out = make([]string, len(*in))
    		copy(*out, *in)
    	}
    	if in.XListType != nil {
    		in, out := &in.XListType, &out.XListType
    		*out = new(string)
    		**out = **in
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/adaptor.go

    }
    
    func (s *Structural) XMapType() string {
    	if s.Structural.XMapType == nil {
    		return ""
    	}
    	return *s.Structural.XMapType
    }
    
    func (s *Structural) XListMapKeys() []string {
    	return s.Structural.XListMapKeys
    }
    
    func (s *Structural) AllOf() []common.Schema {
    	var res []common.Schema
    	for _, subSchema := range s.Structural.ValueValidation.AllOf {
    		subSchema := subSchema
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/convert.go

    	if s == nil {
    		return nil, nil
    	}
    
    	ret := &Extensions{
    		XEmbeddedResource: s.XEmbeddedResource,
    		XIntOrString:      s.XIntOrString,
    		XListMapKeys:      s.XListMapKeys,
    		XListType:         s.XListType,
    		XMapType:          s.XMapType,
    	}
    
    	if s.XPreserveUnknownFields != nil {
    		if !*s.XPreserveUnknownFields {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/values_test.go

    		},
    	}
    	mapListSchema = schema.Structural{
    		Extensions: schema.Extensions{XListType: &listTypeMap, XListMapKeys: []string{"key"}},
    		Generic: schema.Generic{
    			Type: "array",
    		},
    		Items: &mapListElementSchema,
    	}
    	multiKeyMapListSchema = schema.Structural{
    		Extensions: schema.Extensions{XListType: &listTypeMap, XListMapKeys: []string{"key1", "key2"}},
    		Generic: schema.Generic{
    			Type: "array",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/structural.go

    	// extension set to "map". Also, the values specified for this attribute must
    	// be a scalar typed field of the child structure (no nesting is supported).
    	XListMapKeys []string
    
    	// x-kubernetes-list-type annotates a list to further describe its topology.
    	// This extension must only be used on lists and may have 3 possible values:
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. api/api-rules/violation_exceptions.list

    API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,XIntOrString
    API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,XListMapKeys
    API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,XListType
    API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,XMapType
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation.go

    	}
    	if v.ForbiddenExtensions.XIntOrString {
    		allErrs = append(allErrs, field.Forbidden(fldPath.Child("x-kubernetes-int-or-string"), "must be false to be structural"))
    	}
    	if len(v.ForbiddenExtensions.XListMapKeys) > 0 {
    		allErrs = append(allErrs, field.Forbidden(fldPath.Child("x-kubernetes-list-map-keys"), "must be empty to be structural"))
    	}
    	if v.ForbiddenExtensions.XListType != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    					Type: "object",
    					Properties: map[string]apiextensionsv1.JSONSchemaProps{
    						"field": {
    							Type:         "array",
    							XListType:    ptr("map"),
    							XListMapKeys: []string{"name", "port"},
    							Items: &apiextensionsv1.JSONSchemaPropsOrArray{
    								Schema: &apiextensionsv1.JSONSchemaProps{
    									Type:     "object",
    									Required: []string{"name", "port"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
Back to top