Closed
Description
Describe the bug
When you install a helm chart in namespaced mode a cluster role is created with a name not unique to the helm install.
Error: Unable to continue with install: ClusterRole "ack-namespaces-cache-acm-controller" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-namespace" must equal "test-b": current value is "test-a"
I noticed this file exists in a number of charts but did not identify them all. This would not be a problem however when helm installs the files, it adds annotations unique to the the helm install, preventing multiple helm releases from owning the same resource.
meta.helm.sh/release-name: ack-chart
meta.helm.sh/release-namespace: my-namespace
Steps to reproduce
- Helm install acm chart into a namespace (test-a), with the installScope set to namespace
- Attempt to Helm install acm chart into another namespace (test-b), with the installScope set to namespce
Expected outcome
Both installs should work but will fail with a like error.
Error: Unable to continue with install: ClusterRole "ack-namespaces-cache-acm-controller" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-namespace" must equal "test-b": current value is "test-a"
Environment
- All k8s versions
- Not EKS related
- Afaict all helm chart