Skip to content

Commit

Permalink
Add openshift-ovn-kubernetes NS to permitted NS list in admin actions (
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatam authored Dec 20, 2024
1 parent c4ed7d6 commit 4d78981
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/util/namespace/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func IsOpenShiftNamespace(ns string) bool {
"openshift-operator-lifecycle-manager": {},
"openshift-operators": {},
"openshift-ovirt-infra": {},
"openshift-ovn-kubernetes": {},
"openshift-sdn": {},
"openshift-service-ca": {},
"openshift-service-ca-operator": {},
Expand Down
4 changes: 4 additions & 0 deletions pkg/util/namespace/namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ func TestIsOpenShiftNamespace(t *testing.T) {
namespace: "openshift-operator-lifecycle-manager",
want: true,
},
{
namespace: "openshift-ovn-kubernetes",
want: true,
},
{
namespace: "openshift-cluster-version",
want: true,
Expand Down

0 comments on commit 4d78981

Please sign in to comment.