- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for selectableFieldSet (0.2 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go
us, ok := obj.(runtime.Unstructured) if !ok { return nil, fmt.Errorf("unexpected error casting a custom resource to unstructured") } uc := us.UnstructuredContent() selectableFieldsSet = fields.Set{} for _, sf := range a.selectableFieldSet { if sf.err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 21:22:34 UTC 2024 - 14.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy_test.go
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, apiextensionsfeatures.CustomResourceFieldSelectors, true) t.Run(tc.name, func(t *testing.T) { strategy := customResourceStrategy{selectableFieldSet: prepareSelectableFields(tc.selectableFields)} _, fields, err := strategy.GetAttrs(tc.obj) if err != nil { t.Fatal(err) } if !reflect.DeepEqual(tc.expectFields, fields) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 8.2K bytes - Viewed (0)