You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if fails with this error when installing the chart a second time with a different release name:
$ helm install foo ./umbrella-chart -ns foo
$ helm install bar ./umbrella-chart -ns bar
Error: INSTALLATION FAILED: Unable to continue with install: MutatingWebhookConfiguration "cnpg-mutating-webhook-configuration"
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 "bar": current value is "foo"; annotation validation error:
key "meta.helm.sh/release-namespace" must equal "bar": current value is "foo"
This would be fixed if the name of the webhook would be prefixed by the release name instead of being hardcoded in
You are not supposed to have two installations of the operator. You only need one operator per Kubernetes cluster. Even with the recent addition of namespace restricted installations, we don't support installing multiple operators.
I'd advise that you rework your infrastructure code to set up all the necessary operators required by your cluster before you install you application payload.
Including operators as part of the payload charts is a bad practice as they usually affect the whole cluster.
Having CNPG as a subchart, i.e.
if fails with this error when installing the chart a second time with a different release name:
This would be fixed if the name of the webhook would be prefixed by the release name instead of being hardcoded in
charts/charts/cloudnative-pg/templates/mutatingwebhookconfiguration.yaml
Lines 18 to 21 in 238f826
as it happens for example for CertManager webhooks.
The text was updated successfully, but these errors were encountered: