cloudnative-pg / cloudnative-pg/charts

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

Open
#792 8 comments 0 reactions 0 assignees View on GitHub
bug chart( plugin-barman-cloud )
Dominant language
Go Template
Stars
621
Forks
265
Avg merge
7d 12h
Merged PRs (30d)
7

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.