Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for SelectableField (0.17 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/conversion_test.go

    						{Name: "v1", Served: true, Storage: true, SelectableFields: []apiextensions.SelectableField{{JSONPath: ".spec.x"}}},
    						{Name: "v2", Served: false, Storage: false, SelectableFields: []apiextensions.SelectableField{{JSONPath: ".spec.y"}}},
    					},
    				},
    			},
    			Out: &CustomResourceDefinition{},
    			ExpectOut: &CustomResourceDefinition{
    				Spec: CustomResourceDefinitionSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go

    func prepareSelectableFields(selectableFields []v1.SelectableField) []selectableField {
    	result := make([]selectableField, len(selectableFields))
    	for i, sf := range selectableFields {
    		name := strings.TrimPrefix(sf.JSONPath, ".")
    
    		parser := jsonpath.New("selectableField")
    		parser.AllowMissingKeys(true)
    		err := parser.Parse("{" + sf.JSONPath + "}")
    		if err == nil {
    			result[i] = selectableField{
    				name:      name,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 21:22:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/zz_generated.deepcopy.go

    func (in *SelectableField) DeepCopyInto(out *SelectableField) {
    	*out = *in
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelectableField.
    func (in *SelectableField) DeepCopy() *SelectableField {
    	if in == nil {
    		return nil
    	}
    	out := new(SelectableField)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy_test.go

    							Properties: map[string]apiextensions.JSONSchemaProps{
    								"field": {
    									Type: "string",
    								},
    							},
    						},
    					},
    					SelectableFields: []apiextensions.SelectableField{
    						{
    							JSONPath: ".field",
    						},
    					},
    				},
    			},
    			expectedCRD: &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)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/zz_generated.deepcopy.go

    func (in *SelectableField) DeepCopyInto(out *SelectableField) {
    	*out = *in
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelectableField.
    func (in *SelectableField) DeepCopy() *SelectableField {
    	if in == nil {
    		return nil
    	}
    	out := new(SelectableField)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/zz_generated.deepcopy.go

    func (in *SelectableField) DeepCopyInto(out *SelectableField) {
    	*out = *in
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelectableField.
    func (in *SelectableField) DeepCopy() *SelectableField {
    	if in == nil {
    		return nil
    	}
    	out := new(SelectableField)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder_test.go

    		name                  string
    		schema                string
    		preserveUnknownFields *bool
    		wantedSchema          string
    		opts                  Options
    		selectableFields      []apiextensionsv1.SelectableField
    	}{
    		{
    			name:         "nil",
    			wantedSchema: `{"type":"object","x-kubernetes-group-version-kind":[{"group":"bar.k8s.io","kind":"Foo","version":"v1"}]}`,
    			opts:         Options{V2: true},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/test/integration/fieldselector_test.go

    										},
    									},
    									"branded": {
    										Type: "boolean",
    									},
    								},
    							},
    						},
    					},
    				},
    				SelectableFields: []apiextensionsv1.SelectableField{
    					{JSONPath: ".spec.color"},
    					{JSONPath: ".spec.quantity"},
    					{JSONPath: ".spec.size"},
    					{JSONPath: ".spec.branded"},
    				},
    			},
    			{
    				Name:    "v1beta1",
    				Storage: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:53:03 UTC 2024
    - 27K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/types.go

    	// See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors
    	// +optional
    	SelectableFields []SelectableField
    }
    
    // SelectableField specifies the JSON path of a field that may be used with field selectors.
    type SelectableField struct {
    	// jsonPath is a simple JSON path which is evaluated against each custom resource to produce a
    	// field selector value.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/types.go

    	//
    	// +featureGate=CustomResourceFieldSelectors
    	// +optional
    	// +listType=atomic
    	SelectableFields []SelectableField `json:"selectableFields,omitempty" protobuf:"bytes,9,rep,name=selectableFields"`
    }
    
    // SelectableField specifies the JSON path of a field that may be used with field selectors.
    type SelectableField struct {
    	// jsonPath is a simple JSON path which is evaluated against each custom resource to produce a
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 32.3K bytes
    - Viewed (0)
Back to top