Skip to content

Commit

Permalink
Openshift namespace label (#2689)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalFupso authored Jun 12, 2023
1 parent 745de7e commit 57ebe7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/render/namespaces.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2022 Tigera, Inc. All rights reserved.
// Copyright (c) 2019-2023 Tigera, Inc. All rights reserved.

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -103,6 +103,9 @@ func CreateNamespace(name string, provider operatorv1.Provider, pss PodSecurityS
case operatorv1.ProviderOpenShift:
ns.Labels["openshift.io/run-level"] = "0"
ns.Annotations["openshift.io/node-selector"] = ""
ns.Annotations["security.openshift.io/scc.podSecurityLabelSync"] = "false"
ns.Labels["pod-security.kubernetes.io/audit"] = string(pss)
ns.Labels["pod-security.kubernetes.io/warn"] = string(pss)
case operatorv1.ProviderAKS:
ns.Labels["control-plane"] = "true"
}
Expand Down

0 comments on commit 57ebe7f

Please sign in to comment.