kubernetes/test/integration/apiserver/admissionwebhook/match_conditions_test.go

type admissionRecorder

func (r *admissionRecorder) Record(req *admissionv1.AdmissionRequest) {}

func (r *admissionRecorder) MarkerReceived() {}

func (r *admissionRecorder) Reset() chan struct{}

func newMatchConditionHandler(recorder *admissionRecorder) http.Handler {}

// TestMatchConditions tests ValidatingWebhookConfigurations and MutatingWebhookConfigurations that validates different cases of matchCondition fields
func TestMatchConditions(t *testing.T) {}

func TestMatchConditionsWithoutStrictCostEnforcement(t *testing.T) {}

func TestMatchConditionsWithStrictCostEnforcement(t *testing.T) {}

func TestMatchConditions_validation(t *testing.T) {}

func matchConditionsTestPod(name, ns string) *corev1.Pod {}

func newMarkerPod(namespace string) *corev1.Pod {}

func repeatedMatchConditions(size int) []admissionregistrationv1.MatchCondition {}

// generate n matchConditions with provided expression
func generateMatchConditionsWithAuthzCheck(num int, exp string) []admissionregistrationv1.MatchCondition {}