backup-cronjob: PGDATABASE = release name (system POSTGRES_DB was empty)

This commit is contained in:
2026-04-28 10:50:01 +00:00
parent 213170e5ce
commit 760ee75877

View File

@@ -84,11 +84,14 @@ spec:
secretKeyRef:
name: {{ include "instance.fullname" . }}-pg
key: POSTGRES_PASSWORD
# PGDATABASE is the instance's real Odoo database, named
# after the release. The secret's POSTGRES_DB key points
# at the system DB Postgres init creates ("postgres"),
# which is empty — using it produced 374-byte useless
# dumps. Hardcode the release name so backups capture
# the real data regardless of chart-secret defaults.
- name: PGDATABASE
valueFrom:
secretKeyRef:
name: {{ include "instance.fullname" . }}-pg
key: POSTGRES_DB
value: {{ .Release.Name | quote }}
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef: