apiserverk8s.io/apiserver/pkg/admission/testing Index | Files

package testing

import "k8s.io/apiserver/pkg/admission/testing"

Index

Functions

func WithReinvocationTesting

func WithReinvocationTesting(t *testing.T, admission admission.MutationInterface) admission.MutationInterface

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.

Source Files

helpers.go

Version
v0.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
8 hours ago

Tools for package owners.