fix(forte-drop-pg-backup): set MC_CONFIG_DIR so backups can upload #23
Reference in New Issue
Block a user
Delete Branch "fix/pg-backup-mc-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The nightly Postgres backup CronJob has been failing every run — no backups exist in
s3://drops/_pgbackups/.Cause: the upload container runs as uid 65532 (
runAsNonRoot).mcdefaults its config to$HOME/.mc=/.mcand dies withmkdir /.mc: permission deniedon the non-writable root fs — before any upload.Fix: set
MC_CONFIG_DIR=/work/.mc(the shared emptyDir, writable viafsGroup: 65532). Thepg_dumpinitContainer already succeeds; this lets the upload step actually run.Validated:
kubectl kustomizerenders clean; env present on the upload container.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.