diff --git a/charts/timescaledb-single/Chart.yaml b/charts/timescaledb-single/Chart.yaml index 697ffb69..84e86776 100644 --- a/charts/timescaledb-single/Chart.yaml +++ b/charts/timescaledb-single/Chart.yaml @@ -4,7 +4,7 @@ apiVersion: v1 name: timescaledb-single description: 'TimescaleDB HA Deployment.' -version: 0.33.1 +version: 0.33.2 icon: https://cdn.iconscout.com/icon/free/png-256/timescaledb-1958407-1651618.png # appVersion specifies the version of the software, which can vary wildly, diff --git a/charts/timescaledb-single/templates/statefulset-timescaledb.yaml b/charts/timescaledb-single/templates/statefulset-timescaledb.yaml index 7e63437d..f48c5ae1 100644 --- a/charts/timescaledb-single/templates/statefulset-timescaledb.yaml +++ b/charts/timescaledb-single/templates/statefulset-timescaledb.yaml @@ -401,6 +401,8 @@ spec: - mountPath: /etc/pgbackrest_secrets name: pgbackrest-secrets readOnly: true + - mountPath: {{ index .Values.backup.pgBackRest "repo1-path" | default (printf "/%s/%s/" .Release.Namespace (include "clusterName" .)) | quote }} + name: pgbackrest-repo env: - name: PGHOST value: /var/run/postgresql @@ -528,6 +530,10 @@ spec: secret: secretName: {{ .Values.bootstrapFromBackup.secretName }} optional: True + {{- if or .Values.backup.enabled .Values.backup.enable }} + - name: pgbackrest-repo + emptyDir: {} + {{- end }} {{- if not .Values.persistentVolumes.data.enabled }} - name: storage-volume emptyDir: {}