From f3f0990c32703d3c8f5333e302b5eef769701e37 Mon Sep 17 00:00:00 2001 From: harsh4723 Date: Mon, 29 Jul 2024 17:53:00 +0530 Subject: [PATCH 1/2] chore: add retention policy fpr repo1 --- helm/postgres/templates/postgres.yaml | 3 +++ helm/postgres/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/helm/postgres/templates/postgres.yaml b/helm/postgres/templates/postgres.yaml index 53261360..56c025b4 100644 --- a/helm/postgres/templates/postgres.yaml +++ b/helm/postgres/templates/postgres.yaml @@ -116,6 +116,9 @@ spec: azure: container: {{ .Values.azure.container | quote }} {{- else }} + global: + repo1-retention-full: {{ .Values.repo1RetentionFull | quote }} + repo1-retention-full-type: {{ .Values.repo1RetentionFullType | quote }} repos: - name: repo1 volume: diff --git a/helm/postgres/values.yaml b/helm/postgres/values.yaml index 56d1ecd9..3eead312 100644 --- a/helm/postgres/values.yaml +++ b/helm/postgres/values.yaml @@ -176,6 +176,8 @@ postgresVersion: 16 # backupsSize sets the storage size of the backups to a volume in Kubernetes. # can be overridden by "pgBackRestConfig", if set. Defaults to the value below. # backupsSize: 1Gi +repo1RetentionFull: 5 +repo1RetentionFullType: time # backupsStorageClassName sets the storage class to a class existing in Kubernetes. # Defaults to the "default" storage class defined in the cluster. From 9accb800c732d02ee871a704c0af691924d6c4f5 Mon Sep 17 00:00:00 2001 From: harsh4723 Date: Tue, 30 Jul 2024 14:41:55 +0530 Subject: [PATCH 2/2] chore: add schedule --- helm/postgres/templates/postgres.yaml | 2 ++ helm/postgres/values.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/helm/postgres/templates/postgres.yaml b/helm/postgres/templates/postgres.yaml index 56c025b4..52838b64 100644 --- a/helm/postgres/templates/postgres.yaml +++ b/helm/postgres/templates/postgres.yaml @@ -121,6 +121,8 @@ spec: repo1-retention-full-type: {{ .Values.repo1RetentionFullType | quote }} repos: - name: repo1 + schedules: + full: {{ .Values.repo1Schedule | quote }} volume: volumeClaimSpec: {{- if .Values.backupsStorageClassName }} diff --git a/helm/postgres/values.yaml b/helm/postgres/values.yaml index 3eead312..8dbf4d2a 100644 --- a/helm/postgres/values.yaml +++ b/helm/postgres/values.yaml @@ -178,7 +178,7 @@ postgresVersion: 16 # backupsSize: 1Gi repo1RetentionFull: 5 repo1RetentionFullType: time - +repo1Schedule: "0 14 * * 3" # backupsStorageClassName sets the storage class to a class existing in Kubernetes. # Defaults to the "default" storage class defined in the cluster. # Can be overridden by "pgBackRestConfig", if set.