From ae1194c988ada7ef2de96f4727494bdc7e556ef0 Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Tue, 17 Aug 2021 11:52:34 +0200 Subject: [PATCH] Temporarily disable postgresql backup on upgrade system just to be sure. --- charts/stable/postgresql/Chart.yaml | 2 +- .../postgresql/templates/upgrade-backup-postgres-hook.yaml | 3 ++- charts/stable/postgresql/values.yaml | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/stable/postgresql/Chart.yaml b/charts/stable/postgresql/Chart.yaml index 8f80730c3e8..167d50b64e4 100644 --- a/charts/stable/postgresql/Chart.yaml +++ b/charts/stable/postgresql/Chart.yaml @@ -25,4 +25,4 @@ name: postgresql sources: - https://www.postgresql.org/ type: application -version: 1.0.10 +version: 1.0.11 diff --git a/charts/stable/postgresql/templates/upgrade-backup-postgres-hook.yaml b/charts/stable/postgresql/templates/upgrade-backup-postgres-hook.yaml index 05a226d8e9e..a769336cbd7 100644 --- a/charts/stable/postgresql/templates/upgrade-backup-postgres-hook.yaml +++ b/charts/stable/postgresql/templates/upgrade-backup-postgres-hook.yaml @@ -1,4 +1,4 @@ -{{- if .Values.ixChartContext -}} +{{- if and ( .Values.enableUpgradeBackup ) ( .Values.ixChartContext ) -}} {{- if .Values.ixChartContext.isUpgrade -}} {{- $upgradeDict := .Values.ixChartContext.upgradeMetadata -}} {{ $values := (. | mustDeepCopy) }} @@ -54,3 +54,4 @@ spec: {{- end }} {{- end -}} {{- end -}} +{{- end -}} diff --git a/charts/stable/postgresql/values.yaml b/charts/stable/postgresql/values.yaml index 7a70bcd6865..fea434257fc 100644 --- a/charts/stable/postgresql/values.yaml +++ b/charts/stable/postgresql/values.yaml @@ -14,6 +14,9 @@ service: main: port: 5432 +## TODO: Fix the backup-on-upgrade system +enableUpgradeBackup: false + persistence: db: enabled: true