Helm chart fails to install when the watchNamespace parameter contains the same namespace as the Helm release namespace. It tries to create a RoleBinding object for that namespace twice, causing the installation to fail.
Expected Behavior
The Helm chart should create a RoleBinding only once per namespace, even if the release namespace is included in watchNamespace.
Actual Behavior
The chart tries to create two RoleBinding objects for the same namespace, causing the installation to fail.
Steps to Reproduce the Problem
- Set the Helm release namespace to
test
- Set the watchNamespace parameter to test
helm install keda kedacore/keda --namespace test --set watchNamespace=test
Specifications
- KEDA Version: 2.16.1
- Platform & Version: 2.16.1
- Kubernetes Version: 1.31.6
Helm chart fails to install when the
watchNamespaceparameter contains the same namespace as the Helm release namespace. It tries to create aRoleBindingobject for that namespace twice, causing the installation to fail.Expected Behavior
The Helm chart should create a
RoleBindingonly once per namespace, even if the release namespace is included in watchNamespace.Actual Behavior
The chart tries to create two
RoleBindingobjects for the same namespace, causing the installation to fail.Steps to Reproduce the Problem
testhelm install keda kedacore/keda --namespace test --set watchNamespace=testSpecifications