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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user