Skip to content

Bug: Installing barman-cloud-plugin will fail if the CloudNativePG operator is installed to a namespace other than cnpg-system #792

@jansenfuller

Description

@jansenfuller

I installed the CNPG operator into the namespace "cnpg" instead of "cnpg-system" using the following helm command

helm install --namespace cnpg --create-namespace --version 0.27.0 cnpg cnpg/cloudnative-pg

The install completed successfully and is being used with two different clusters currently. I then tried to install the Barman Cloud Plugin with the following command

helm install --namespace cnpg --create-namespace plugin-barman-cloud plugin-barman-cloud/cloudnative-pg

The following error was thrown

Error: INSTALLATION FAILED: Unable to continue with install: ConfigMap "cnpg-controller-manager-config" in namespace "cnpg" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-name" must equal "plugin-barman-cloud": current value is "cnpg"    

I'm unsure how to remedy this. Manually changing the annotations works but cannot be done to all of the CRDs and objects. I've tried the following values to possibly override the annotations but I have had no luck.

namesapceOverride: "cnpg"
additionalEnv:
  - name: RELEASE_NAME
  - value: "cnpg"

Help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions