From 546961bf40c543d85cc4087ca57613834dc2ea7a Mon Sep 17 00:00:00 2001 From: Tanmay Satam Date: Mon, 9 Dec 2024 14:21:59 -0500 Subject: [PATCH] Add openshift-ovn-kubernetes NS to permitted NS list in admin actions --- pkg/util/namespace/namespace.go | 1 + pkg/util/namespace/namespace_test.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/pkg/util/namespace/namespace.go b/pkg/util/namespace/namespace.go index da17ee31745..d58a094ae78 100644 --- a/pkg/util/namespace/namespace.go +++ b/pkg/util/namespace/namespace.go @@ -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": {}, diff --git a/pkg/util/namespace/namespace_test.go b/pkg/util/namespace/namespace_test.go index b5cc481a3ec..4257f2f421b 100644 --- a/pkg/util/namespace/namespace_test.go +++ b/pkg/util/namespace/namespace_test.go @@ -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,