I am using helm to deploy a namespace resource but each time helm adds annotations automatically:
meta.helm.sh/release-name=my-pr-111
which creates troubles for subsequent helm deployments using the same namespace
For example, I first deployed the namespace using command:
helm upgrade my-pr-111 ./path/helm/chart --install --atomic
Then the namespace is deployed with annotations:
meta.helm.sh/release-name=my-pr-111
Then if I do another deployment for the same namespace using command:
helm upgrade my-pr-222 ./path/helm/chart --install --atomic
Then I got an error:
Unable to continue with install: Namespace "my-space" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-name" must equal "my-pr-222": current value is "my-pr-111"
Anyone knows how to handle this situation?