1.25.1 Cluster Auditor Release Name Change
The following error was encountered when upgrading Bigbang from 1.24.0
-> 1.25.1
:
bigbang helmrelease.helm.toolkit.fluxcd.io/cluster-auditor False Helm install failed: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole “cluster-audit-logging” in namespace “” exists and cannot be imported into the current release: invali
d ownership metadata; annotation validation error: key “meta.helm.sh/release-name” must equal “cluster-auditor-cluster-auditor”: current value is “logging-cluster-auditor”; annotation validation error: key “meta.helm.sh/release-namespace” must equal “cluster-auditor”: current value is “logging”
We were able to resolve by manually patching the ClusterRole object with kubectl edit clusterrole cluster-audit-logging
and updating the existing annotation key meta.helm.sh/release-name
with the (expected) value cluster-auditor-cluster-auditor
. I would note we did not update the meta.helm.sh/release-namespace
value, but the validation error no longer blocked the release.
Edited by Andrew Blanchard