// WithReinvocationTesting wraps a mutating admission handler and reinvokes it each time Admit is // called. It checks the admission output object and reports a test error if the admission handler // performs non-idempotent mutatations to the object. func WithReinvocationTesting(t *testing.T, admission admission.MutationInterface) admission.MutationInterface { … } type reinvoker … // Admit reinvokes the admission handler and reports a test error if the admission handler performs // non-idempotent mutatations to the admission object. func (r *reinvoker) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error { … } // Handles will return true if any of the admission andler handlers handle the given operation. func (r *reinvoker) Handles(operation admission.Operation) bool { … }