docs: migration guide does not say where `serverName` goes, and the default differs for external clusters
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 25/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- go, markdown, postgresql
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Go
- スター
- 204
- フォーク
- 86
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 25
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudnative-pg/plugin-barman-cloud のほかの issue
-
docs: troubleshooting does not cover "cannot proceed with the backup as the cluster has no backup section"対応中かも @fjvbn2003 が 7 日前に担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
cloudnative-pg/plugin-barman-cloud#1165 ·
メンテナーはふだん 1 日以内に返信
-
Wrong `ObjectStore` key logged when the backup object store can't be retrieved in the instance sidecar対応中かも @BoxBoxJason が 11 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
cloudnative-pg/plugin-barman-cloud#1142 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
cloudnative-pg/plugin-barman-cloud#1117 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
data.compression rejects zstd although barman-cloud-backup supports it対応中かも @dgsardina が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
cloudnative-pg/plugin-barman-cloud#1104 · リアクション 4 件 ·
メンテナーはふだん 1 日以内に返信
-
Add RBAC aggregation labels to ObjectStore editor/viewer ClusterRoles対応中かも @stefanpeknik が 37 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
cloudnative-pg/plugin-barman-cloud#1102 ·
メンテナーはふだん 1 日以内に返信
cloudnative-pg/plugin-barman-cloud の issue をすべて見る
似ている issue
-
compress: block buffers get re-zeroed on every call, and the zeroing is immediately overwrittenオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/ch-go#1218 ·
メンテナーはふだん 13 日以内に返信
-
automation models
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
podman-container-tools/podman#30031 ·
メンテナーはふだん 1 日以内に返信