Skip to content

Commit

Permalink
Label e2e test namespace as privileged (#849)
Browse files Browse the repository at this point in the history
This is required for OpenShift 4.11.

Signed-off-by: Tom Pantelis <[email protected]>

Co-authored-by: Tom Pantelis <[email protected]>
  • Loading branch information
skitt and tpantelis authored Jun 28, 2022
1 parent e63cdfc commit 9b91c1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9b91c1e

Please sign in to comment.