Skip to content

Commit

Permalink
Merge pull request #235 from joelsmith/kedamain
Browse files Browse the repository at this point in the history
Prevent namespace creation/modification when installing via OLM
  • Loading branch information
joelsmith authored Jun 29, 2024
2 parents 8771bfa + b65244e commit 46329e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/keda/kedacontroller_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 46329e6

Please sign in to comment.