- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewVersionedAttributes (0.55 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/conversion.go
if err != nil { return nil, err } // Explicitly set the GVK out.GetObjectKind().SetGroupVersionKind(gvk) return out, nil } // NewVersionedAttributes returns versioned attributes with the old and new object (if non-nil) converted to the requested kind func NewVersionedAttributes(attr Attributes, gvk schema.GroupVersionKind, o ObjectInterfaces) (*VersionedAttributes, error) { // convert the old and new objects to the requested version
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 16:56:12 UTC 2023 - 4.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher_test.go
func TestMatch(t *testing.T) { fakeAttr := admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{}, "default", "foo", schema.GroupVersionResource{}, "", admission.Create, nil, false, nil) fakeVersionedAttr, _ := admission.NewVersionedAttributes(fakeAttr, schema.GroupVersionKind{}, nil) fail := v1.Fail ignore := v1.Ignore cases := []struct { name string evaluations []cel.EvaluationResult throwError bool shouldMatch bool
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 15 00:53:08 UTC 2023 - 8.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition_test.go
f := compiler.Compile(validations, OptionalVariableDeclarations{HasParams: false, HasAuthorizer: false, StrictCost: tc.strictCostEnforcement}, environment.NewExpressions) versionedAttr, err := admission.NewVersionedAttributes(tc.attributes, tc.attributes.GetKind(), newObjectInterfacesForTest()) if err != nil { t.Fatal(err) } optionalVars := OptionalVariableBindings{} costBudget := tc.runtimeCostBudget
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 8.2K bytes - Viewed (0)