From ad75bf1061b098b0b8b719b113f91d0bc073d2a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= Date: Tue, 10 Sep 2024 11:12:34 +0200 Subject: [PATCH] fix: backup retention for dev --- plugins/fabrique/charts/pg/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/fabrique/charts/pg/values.yaml b/plugins/fabrique/charts/pg/values.yaml index c0f3218ef..67746608a 100644 --- a/plugins/fabrique/charts/pg/values.yaml +++ b/plugins/fabrique/charts/pg/values.yaml @@ -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 }}"