const testReinvocationClientUsername …
const auditPolicy …
func TestWebhookReinvocationPolicyWithWatchCache(t *testing.T) { … }
func TestWebhookReinvocationPolicyWithoutWatchCache(t *testing.T) { … }
func mutationAnnotationValue(configuration, webhook string, mutated bool) string { … }
func patchAnnotationValue(configuration, webhook string, patch string) string { … }
func testWebhookReinvocationPolicy(t *testing.T, watchCache bool) { … }
type invocationRecorder …
func (i *invocationRecorder) Reset() chan struct{ … }
func (i *invocationRecorder) MarkerReceived() { … }
func (i *invocationRecorder) GetCount(path string) int { … }
func (i *invocationRecorder) IncrementCount(path string) { … }
func newReinvokeWebhookHandler(recorder *invocationRecorder) http.Handler { … }
func expectedAuditEvents(webhookMutationAnnotations, webhookPatchAnnotations map[string]string, namespace string) []utils.AuditEvent { … }
func newReinvocationMarkerFixture(namespace string) *corev1.Pod { … }