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

Đang mở
#792 8 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
helm, kubernetes
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

Tái hiện lỗi bằng cách cài đặt CloudNativePG vào namespace cnpg, sau đó cài đặt Barman Cloud Plugin tại đó. Kiểm tra các tài nguyên đã được render của chart plugin và các annotation về quyền sở hữu của Helm, rồi xác minh rằng quá trình cài đặt sạch thành công mà không cần thay đổi thủ công metadata của các object hiện có.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go Template
Star
638
Fork
272
Merge trung bình
4 ngày 17 giờ
Pull request đã merge (30 ngày)
22

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloudnative-pg/charts

Tất cả issue của cloudnative-pg/charts

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.