db(portal): migrate WAL archiving to the CNPG-I Barman Cloud plugin #21

Merged
sirius merged 1 commit from feat/t_5df331de-barman-plugin into master 2026-11-19 22:58:24 +00:00
Owner

Second half of kanban t_5df331de, on top of merged #20 (cert-manager).

  • vendors plugin-barman-cloud v0.16.0 (sha256 aee61468…7155) into infrastructure/databases/base/upstream/, patched only for --log-level=info + resource bounds;
  • ObjectStore sirius-growth/portal-wal = literal translation of the retired barmanObjectStore, retentionPolicy: 14d moved onto it;
  • Cluster portal: spec.backup gone, spec.plugins (barman-cloud.cloudnative-pg.io, isWALArchiver, serverName: portal) in;
  • ScheduledBackup portal-daily: method: plugin;
  • databases dependsOn cert-manager, apps dependsOn databases;
  • CNPG dashboard accepts both backup-timestamp metric families.

Live verification (archiving on the plugin, then a full PITR rehearsal) follows on the task; docs land in a separate commit once the rehearsal transcript exists.

Second half of kanban t_5df331de, on top of merged #20 (cert-manager). - vendors plugin-barman-cloud v0.16.0 (sha256 `aee61468…7155`) into `infrastructure/databases/base/upstream/`, patched only for `--log-level=info` + resource bounds; - `ObjectStore sirius-growth/portal-wal` = literal translation of the retired `barmanObjectStore`, `retentionPolicy: 14d` moved onto it; - `Cluster portal`: `spec.backup` gone, `spec.plugins` (`barman-cloud.cloudnative-pg.io`, `isWALArchiver`, `serverName: portal`) in; - `ScheduledBackup portal-daily`: `method: plugin`; - `databases` dependsOn `cert-manager`, `apps` dependsOn `databases`; - CNPG dashboard accepts both backup-timestamp metric families. Live verification (archiving on the plugin, then a full PITR rehearsal) follows on the task; docs land in a separate commit once the rehearsal transcript exists.
CloudNativePG 1.30 deprecates spec.backup.barmanObjectStore and 1.31 removes
it, so the pin on 1.30.0 was a hard gate. This closes that gate:

- Vendors plugin-barman-cloud v0.16.0 verbatim into
  infrastructure/databases/base/upstream/ (the operator manifest's pattern),
  with a kustomize patch only for --log-level=info and resource bounds.
  v0.16.0 requires CNPG >= 1.30 and is registered through Service
  annotations; its operator<->plugin mTLS pair comes from cert-manager
  (previous commit).
- Adds ObjectStore sirius-growth/portal-wal: the literal translation of the
  retired barmanObjectStore block, with retentionPolicy 14d moved off the
  Cluster (in the plugin, retention belongs to the store).
- Cluster portal drops spec.backup entirely and gains spec.plugins
  (barman-cloud.cloudnative-pg.io, isWALArchiver, barmanObjectName
  portal-wal, serverName portal). The server name is the barman prefix, so
  the plugin keeps writing s3://pg-wal-archive/portal/{base,wals}/... — the
  same objects the in-tree archiver left behind; the 14-day window stays
  readable.
- ScheduledBackup portal-daily switches to method: plugin.
- databases waits on cert-manager; apps waits on databases (the ObjectStore
  CRD ships with the plugin).
- CNPG dashboard: the backup timestamp metric family changes name under the
  plugin, so the panel now accepts both.
sirius merged commit cdc3f7093e into master 2026-11-19 22:58:24 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/homek8s!21
No description provided.