[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 <ahmet.kaftan@cloudnesil.com>

* typo fix.

Signed-off-by: Ahmet Kaftan <ahmet.kaftan@cloudnesil.com>
This commit is contained in:
Ahmet Kaftan
2020-03-02 00:30:42 -08:00
committed by GitHub
parent 2d037478c2
commit 958e01a4d7
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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:
@@ -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