From b65244e2953b75c64cf0328a9d6f8b828cbdcb89 Mon Sep 17 00:00:00 2001 From: Joel Smith Date: Fri, 28 Jun 2024 11:13:00 -0600 Subject: [PATCH] Prevent namespace creation/modification when installing via OLM Signed-off-by: Joel Smith --- controllers/keda/kedacontroller_controller.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/keda/kedacontroller_controller.go b/controllers/keda/kedacontroller_controller.go index da66f168c..934a84138 100644 --- a/controllers/keda/kedacontroller_controller.go +++ b/controllers/keda/kedacontroller_controller.go @@ -263,10 +263,12 @@ func parseManifestsFromFile(manifest mf.Manifest, c client.Client) (manifestGene } case "Secret": controllerResources = append(controllerResources, r) - case "Namespace", "ServiceAccount": + case "ServiceAccount": generalResources = append(generalResources, r) case "PodMonitor", "ServiceMonitor": monitoringResources = append(monitoringResources, r) + case "Namespace": + // ignore. we don't need to create or label the namespace since it's a prereq for OLM install anyway } }