From 958e01a4d70d8739003c24dd132d47ec2d359b46 Mon Sep 17 00:00:00 2001 From: Ahmet Kaftan Date: Mon, 2 Mar 2020 11:30:42 +0300 Subject: [PATCH] [stable/mongodb] updateStrategy added when useStatefulSet is true and serviceName added. (#21150) * updateStrategy added when useStatefulSet is true and serviceName added. Signed-off-by: Ahmet Kaftan * typo fix. Signed-off-by: Ahmet Kaftan --- stable/mongodb/Chart.yaml | 2 +- stable/mongodb/templates/deployment-standalone.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stable/mongodb/Chart.yaml b/stable/mongodb/Chart.yaml index 141543bbfc..013af3ff26 100644 --- a/stable/mongodb/Chart.yaml +++ b/stable/mongodb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mongodb -version: 7.8.6 +version: 7.8.7 appVersion: 4.2.3 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/stable/mongodb/templates/deployment-standalone.yaml b/stable/mongodb/templates/deployment-standalone.yaml index 78c9e1d704..4951598fe6 100644 --- a/stable/mongodb/templates/deployment-standalone.yaml +++ b/stable/mongodb/templates/deployment-standalone.yaml @@ -16,7 +16,12 @@ metadata: {{ toYaml . | indent 4 }} {{- end }} spec: + {{- if .Values.useStatefulSet }} + serviceName: {{ template "mongodb.serviceName" . }} + updateStrategy: + {{- else }} strategy: + {{- end }} type: {{ .Values.updateStrategy.type }} {{- if (eq "Recreate" .Values.updateStrategy.type) }} rollingUpdate: null