opensearch-k8s-operator
opensearch-k8s-operator copied to clipboard
Operator doesn't work if deployed in different namespaces
With the PR #158 you added the option to use the operator inside a specific namespace.
It works, but only if deployed in a single namespace.
The issue is related to ClusterRole / ClusterRoleBinding: they have the namespace in there but they keep the same name also if you deploy the operator in multiple namespaces:
In this way if you try to deploy the operator in two different namespaces only the last one will work (because it overrides ClusterRole / ClusterRoleBinding with same name changing only the namespace value):
Other operators add the namespace dynamically to ClusterRole / ClusterRoleBinding name so there are no conflicts:
Hi @Leen15 . Thank you for the report. You are absolutely right. We'll need to add a namespace/helm-release-specific suffix to all objects in the helm-chart that are not namespaced.