Skip to content

Commit

Permalink
Merge pull request #42 from parc-jason/bugfix/env-vars
Browse files Browse the repository at this point in the history
Match Env Var Keys to ConfigMap Keys for RETENTION options.
  • Loading branch information
WadeBarnes authored Mar 4, 2020
2 parents 08bda74 + 6b8d5b8 commit 0a4c675
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openshift/templates/backup/backup-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ objects:
DEFAULT_PORT: "${DATABASE_DEFAULT_PORT}"
POSTGRESQL_DATABASE: "${DATABASE_NAME}"
# BACKUP_STRATEGY: "daily"
RETENTION.NUM_BACKUPS: "${NUM_BACKUPS}"
BACKUP_STRATEGY: "rolling"
RETENTION.NUM_BACKUPS: "${NUM_BACKUPS}"
RETENTION.DAILY_BACKUPS: "${DAILY_BACKUPS}"
RETENTION.WEEKLY_BACKUPS: "${WEEKLY_BACKUPS}"
RETENTION.MONTHLY_BACKUPS: "${MONTHLY_BACKUPS}"
Expand Down Expand Up @@ -184,25 +184,25 @@ objects:
valueFrom:
configMapKeyRef:
name: "${JOB_NAME}-config"
key: NUM_BACKUPS
key: RETENTION.NUM_BACKUPS
optional: true
- name: DAILY_BACKUPS
valueFrom:
configMapKeyRef:
name: "${JOB_NAME}-config"
key: DAILY_BACKUPS
key: RETENTION.DAILY_BACKUPS
optional: true
- name: WEEKLY_BACKUPS
valueFrom:
configMapKeyRef:
name: "${JOB_NAME}-config"
key: WEEKLY_BACKUPS
key: RETENTION.WEEKLY_BACKUPS
optional: true
- name: MONTHLY_BACKUPS
valueFrom:
configMapKeyRef:
name: "${JOB_NAME}-config"
key: MONTHLY_BACKUPS
key: RETENTION.MONTHLY_BACKUPS
optional: true
- name: DATABASE_SERVICE_NAME
valueFrom:
Expand Down

0 comments on commit 0a4c675

Please sign in to comment.