From 47b8b329ed31660ad8e55e9b9992ac5f0e2ce3c9 Mon Sep 17 00:00:00 2001 From: Minh Danh Date: Mon, 18 Mar 2019 17:06:05 +0700 Subject: [PATCH] Set rollingUpdate to null when updateStrategy is Recreate (#12319) Signed-off-by: Minh Danh --- stable/postgresql/Chart.yaml | 2 +- stable/postgresql/templates/statefulset-slaves.yaml | 3 +++ stable/postgresql/templates/statefulset.yaml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/postgresql/Chart.yaml b/stable/postgresql/Chart.yaml index 0082387dc757..6c06eba1f225 100644 --- a/stable/postgresql/Chart.yaml +++ b/stable/postgresql/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: postgresql -version: 3.14.0 +version: 3.14.1 appVersion: 10.7.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/stable/postgresql/templates/statefulset-slaves.yaml b/stable/postgresql/templates/statefulset-slaves.yaml index dd3331f54f48..7feb0be11e54 100644 --- a/stable/postgresql/templates/statefulset-slaves.yaml +++ b/stable/postgresql/templates/statefulset-slaves.yaml @@ -191,6 +191,9 @@ spec: {{- end }} updateStrategy: type: {{ .Values.updateStrategy.type }} + {{- if (eq "Recreate" .Values.updateStrategy.type) }} + rollingUpdate: null + {{- end }} {{- if .Values.persistence.enabled }} volumeClaimTemplates: - metadata: diff --git a/stable/postgresql/templates/statefulset.yaml b/stable/postgresql/templates/statefulset.yaml index 62b560405868..955215502d3f 100644 --- a/stable/postgresql/templates/statefulset.yaml +++ b/stable/postgresql/templates/statefulset.yaml @@ -12,6 +12,9 @@ spec: replicas: 1 updateStrategy: type: {{ .Values.updateStrategy.type }} + {{- if (eq "Recreate" .Values.updateStrategy.type) }} + rollingUpdate: null + {{- end }} selector: matchLabels: app: {{ template "postgresql.name" . }}