- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for UpdateAndWait (0.13 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go
Message: "Policy2Denied", }, }, } }) require.NoError(t, testContext.UpdateAndWait(fakeParams, &policy1, &binding1)) // Make sure policy 1 is created and bound to the params type first require.NoError(t, testContext.UpdateAndWait(&policy2, &binding2)) err := testContext.Plugin.Dispatch( testContext,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 25 01:39:01 UTC 2024 - 63.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_source_test.go
require.NoError(t, testContext.UpdateAndWait( &FakePolicy{ ObjectMeta: metav1.ObjectMeta{ Name: "policy2", }, }, &FakeBinding{ ObjectMeta: metav1.ObjectMeta{ Name: "binding2", }, PolicyName: "policy2", }, )) require.Len(t, testContext.Source.Hooks(), 2, "should have two policies") require.NoError(t, testContext.UpdateAndWait( &FakePolicy{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 6.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go
} return res, testCancel, nil } // UpdateAndWait updates the given object in the test, or creates it if it doesn't exist // Depending upon object type, waits afterward until the object is synced // by the policy source // // Be aware the UpdateAndWait will modify the ResourceVersion of the // provided objects. func (p *PolicyTestContext[P, B, E]) UpdateAndWait(objects ...runtime.Object) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 19K bytes - Viewed (0)