From 9b91c1e69cea262c5da51d20f1749d3ecb485246 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Tue, 28 Jun 2022 17:23:41 +0200 Subject: [PATCH] Label e2e test namespace as privileged (#849) This is required for OpenShift 4.11. Signed-off-by: Tom Pantelis Co-authored-by: Tom Pantelis --- test/e2e/framework/framework.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/e2e/framework/framework.go b/test/e2e/framework/framework.go index 5d7c7fc6b..fe07bb908 100644 --- a/test/e2e/framework/framework.go +++ b/test/e2e/framework/framework.go @@ -201,7 +201,10 @@ func (f *Framework) BeforeEach() { By(fmt.Sprintf("Creating namespace objects with basename %q", f.BaseName)) namespaceLabels := map[string]string{ - "e2e-framework": f.BaseName, + "e2e-framework": f.BaseName, + "pod-security.kubernetes.io/enforce": "privileged", + "pod-security.kubernetes.io/audit": "privileged", + "pod-security.kubernetes.io/warn": "privileged", } for idx, clientSet := range KubeClients {