feat(backup): add environment variables for app name and backup retention in cron job and fix quoting in backup script

This commit is contained in:
2025-05-10 19:09:21 +02:00
parent 9e45ff6376
commit a19c71009f
2 changed files with 9 additions and 1 deletions
@@ -121,6 +121,14 @@ resource "kubernetes_cron_job_v1" "backup_job" {
name = "BUCKET_NAME"
value = var.bucket_name
}
env {
name = "APP_NAME"
value = var.app_name
}
env {
name = "BACKUP_RETENTION"
value = var.retention_days
}
command = ["/bin/sh", "-c"]
args = ["/tmp/scripts/backup.sh"]
security_context {