- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for DeleteAndWait (0.34 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go
require.ErrorContains(t, testContext.Plugin.Dispatch( testContext, record, &admission.RuntimeObjectInterfaces{}, ), `Denied`) require.NoError(t, testContext.DeleteAndWait(denyPolicy)) require.NoError(t, testContext.Plugin.Dispatch( testContext, // Object is irrelevant/unchecked for this test. Just test that // the evaluator is executed, and returns a denial record,
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_test_context.go
} } return nil } } // Depending upon object type, waits afterward until the object is synced // by the policy source func (p *PolicyTestContext[P, B, E]) DeleteAndWait(object ...runtime.Object) error { for _, object := range object { if err := p.deleteOne(object); err != nil && !errors.IsNotFound(err) { return err } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 19K bytes - Viewed (0)