db(portal): migrate WAL archiving to the CNPG-I Barman Cloud plugin
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.
This commit is contained in:
parent
f3a8233e37
commit
c45255242b
11 changed files with 1312 additions and 51 deletions
|
|
@ -15,3 +15,7 @@ spec:
|
|||
prune: true
|
||||
dependsOn:
|
||||
- name: infrastructure
|
||||
# `sirius-growth` now carries an `ObjectStore` (barmancloud.cnpg.io) whose
|
||||
# CRD ships with the plugin in the `databases` Kustomization, and the
|
||||
# portal Cluster references it. Apply apps only after that CRD exists.
|
||||
- name: databases
|
||||
|
|
|
|||
|
|
@ -11,9 +11,15 @@ spec:
|
|||
kind: GitRepository
|
||||
name: flux-system
|
||||
path: ./infrastructure/databases/base
|
||||
# The CloudNativePG operator bundle contains its 11 CRDs. Those must never be
|
||||
# pruned automatically: dropping them would delete every Cluster/Database
|
||||
# The CloudNativePG operator bundle contains its 11 CRDs, and the vendored
|
||||
# Barman Cloud plugin adds the `ObjectStore` CRD. Those must never be pruned
|
||||
# automatically: dropping them would delete every Cluster/Database/Backup
|
||||
# object (and the Forgejo and portal Postgres clusters with them). Same
|
||||
# reasoning as gateway-api-crds. Reverting the operator Deployment args is a
|
||||
# git change, not a prune.
|
||||
prune: false
|
||||
# The plugin's operator<->plugin mTLS pair is issued by cert-manager
|
||||
# (Issuer/Certificate in the vendored plugin manifest). Applying those before
|
||||
# the cert-manager CRDs and webhook exist just churns; wait for it.
|
||||
dependsOn:
|
||||
- name: cert-manager
|
||||
|
|
|
|||
Loading…
Reference in a new issue