From 458ca893bcd43e2d720350bb5cbc2f78603f9b92 Mon Sep 17 00:00:00 2001 From: Devan Goodwin Date: Thu, 29 Aug 2024 09:10:47 -0300 Subject: [PATCH] UPSTREAM: 126994: Add required FieldManager for validatingadmissionpolicy e2e This line would fail if the code path happened to execute, which may not happen in upstream, but does trigger occasionally in OpenShift testing. --- test/e2e/apimachinery/validatingadmissionpolicy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/apimachinery/validatingadmissionpolicy.go b/test/e2e/apimachinery/validatingadmissionpolicy.go index 0316357217462..066d8b0ccef36 100644 --- a/test/e2e/apimachinery/validatingadmissionpolicy.go +++ b/test/e2e/apimachinery/validatingadmissionpolicy.go @@ -370,7 +370,7 @@ var _ = SIGDescribe("ValidatingAdmissionPolicy [Privileged:ClusterAdmin]", func( "touched": time.Now().String(), "random": fmt.Sprintf("%d", rand.Int()), }) - _, err := client.AdmissionregistrationV1().ValidatingAdmissionPolicies().Apply(ctx, applyConfig, metav1.ApplyOptions{}) + _, err := client.AdmissionregistrationV1().ValidatingAdmissionPolicies().Apply(ctx, applyConfig, metav1.ApplyOptions{FieldManager: "validatingadmissionpolicy-e2e"}) return false, err } return true, nil