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

オープン
#792 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
helm, kubernetes

調査の方向性

CloudNativePG を cnpg namespace にインストールし、続いてそこに Barman Cloud Plugin をインストールして、失敗を再現します。plugin chart のレンダリング後のリソースと Helm の所有権アノテーションを調査し、その後、既存オブジェクトのメタデータを手動で変更せずにクリーンインストールが成功することを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug chart( plugin-barman-cloud )

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.

主要言語
Go Template
スター
638
フォーク
272
平均マージ
4日 21時間
マージ済み PR(30日)
21

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cloudnative-pg/charts のほかの issue

cloudnative-pg/charts の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。