docs: migration guide does not say where `serverName` goes, and the default differs for external clusters
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go, markdown, postgresql
- Lĩnh vực
- documentation
Hướng nghiên cứu
Start with web/docs/migration.md Steps 1, 2, and 4, then check parameters.md for the current serverName guidance. The issue proposes documenting the CRD restriction and the changed default for external clusters. Done means the migration guide explains where to set serverName and when it must be explicit, and parameters.md states its default. A linked pull request is already open.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What is wrong
The migration guide (web/docs/migration.md, Step 1) says the
.spec.backup.barmanObjectStore section maps directly to
ObjectStore.spec.configuration, "with one key difference" (retention).
There is a second one: serverName.
-
If the in-tree configuration sets
barmanObjectStore.serverName, copying it
into theObjectStoreis rejected by the CRD:spec.configuration.serverName: Forbidden: use the 'serverName' plugin parameter in the Cluster resourceThe rule is in
api/v1/objectstore_types.go(added in #336).usage.mdand
parameters.mdmention it, but the migration guide, which is the page that
tells users to copy the section, does not. Step 2 does not show the
serverNameplugin parameter either. -
For external clusters the default is different. In-tree,
ExternalCluster.GetServerName()falls back to the external cluster name
(pg-eu). In the plugin,NewFromClusterfalls back tocluster.Name, the
Cluster being created (pg-us), for both the recovery and the replica
source (internal/cnpgi/operator/config/config.go). Step 4 happens to set
serverName: pg-euexplicitly, but nothing says it is required, and an
in-tree entry that relied on the default would read from a different path
after the conversion.
How I hit it
I migrated a CNPG 1.30 cluster from the in-tree barmanObjectStore to the
plugin (v0.14.0). The Cluster had an explicit serverName so that the plugin
would keep using the existing backup path. Following the guide literally, the
ObjectStore was rejected with the error above. Moving serverName to
.spec.plugins[].parameters worked, and the plugin kept appending to the
existing archive (the ObjectStore status shows a recovery window that
started before the migration, and daily plugin backups complete).
Proposal
A docs-only change:
- Step 1: list
serverNameas a second difference, with the error message. - Step 2: show the
serverNameplugin parameter for clusters that set one. - Step 4: warn that
serverNamemust be set explicitly, because the default
changes from the external cluster name to the Cluster name. parameters.md: state the default ofserverName.
If the different default for external clusters is not intended, I am happy to
turn this into a code change instead. I have a patch for the docs ready.
- Ngôn ngữ chính
- Go
- Star
- 204
- Fork
- 86
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 25
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudnative-pg/plugin-barman-cloud
-
docs: troubleshooting does not cover "cannot proceed with the backup as the cluster has no backup section"Có thể đã có người làm @fjvbn2003 đã nhận 7 ngày trước. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
cloudnative-pg/plugin-barman-cloud#1165 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Wrong `ObjectStore` key logged when the backup object store can't be retrieved in the instance sidecarCó thể đã có người làm @BoxBoxJason đã nhận 11 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
cloudnative-pg/plugin-barman-cloud#1142 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
cloudnative-pg/plugin-barman-cloud#1117 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
data.compression rejects zstd although barman-cloud-backup supports itCó thể đã có người làm @dgsardina đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
cloudnative-pg/plugin-barman-cloud#1104 · 4 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add RBAC aggregation labels to ObjectStore editor/viewer ClusterRolesCó thể đã có người làm @stefanpeknik đã nhận 37 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
cloudnative-pg/plugin-barman-cloud#1102 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cloudnative-pg/plugin-barman-cloud
Issue tương tự
-
[BUG] deploy.restart_policy without condition drops the restart policyCó thể đã có người làm @akshat-lakhera đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
docker/compose#14383 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
AvengeMedia/dank-greeter#39 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
dokku/dokku-datastore#367 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: ap gateway image build cannot find local policies on WindowsCó thể đã có người làm @Jayzilva đã nhận hôm nay. Đang mởAspect/Configuration Severity/Major
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
wso2/api-platform#3912 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày