Skip to content

Commit

Permalink
UPSTREAM: <carry>: Create minimal wrapper needed to run k8s e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
soltysh authored and bertinatto committed Mar 6, 2024
1 parent 95427f5 commit f733b0a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions openshift-hack/e2e/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ func CreateTestingNS(ctx context.Context, baseName string, c kclientset.Interfac
baseName = "e2e-" + baseName
}

if labels == nil {
labels = map[string]string{}
}
// turn off the OpenShift label syncer so that it does not attempt to sync
// the PodSecurity admission labels
labels["security.openshift.io/scc.podSecurityLabelSync"] = "false"

if isKubeNamespace {
if labels == nil {
labels = map[string]string{}
}
labels["security.openshift.io/disable-securitycontextconstraints"] = "true"
}

Expand Down

0 comments on commit f733b0a

Please sign in to comment.