Skip to content

Commit

Permalink
fix: backup retention for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed Sep 10, 2024
1 parent 3d4294b commit ad75bf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/fabrique/charts/pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ cnpg-cluster:
backup:
~tpl~enabled: "{{ (or .Values.Parent.backup.enabled .Values.global.isProd .Values.global.isPreProd) | ternary `true` `false` }}"
schedule: "0 0 0 * * *" # daily
retentionPolicy: 60d
sqlDumpRetentionDays: "60"
retentionPolicy: "{{ .Values.global.isProd | ternary `60d` `7d` }}"
sqlDumpRetentionDays: "{{ .Values.global.isProd | ternary `60` `7` }}"
barmanObjectStore:
~tpl~destinationPath: "s3://{{ .Values.global.projectName }}-{{ .Values.global.isProd | ternary `prod` `dev` }}-backups/{{ .Values.global.namespace }}{{ (ne .Values.Parent.backup.name ``) | ternary (print `-` .Values.Parent.backup.name) `` }}"
~tpl~endpointURL: "{{ .Values.global.pgBackupEndpointURL }}"
Expand Down

0 comments on commit ad75bf1

Please sign in to comment.