Skip to content

Commit

Permalink
[stable/mongodb] updateStrategy added when useStatefulSet is true and…
Browse files Browse the repository at this point in the history
… serviceName added. (helm#21150)

* updateStrategy added when useStatefulSet is true and serviceName added.

Signed-off-by: Ahmet Kaftan <[email protected]>

* typo fix.

Signed-off-by: Ahmet Kaftan <[email protected]>
Signed-off-by: Miguel Mingorance <[email protected]>
  • Loading branch information
ahmetkaftan authored and Miguel Mingorance committed Aug 28, 2020
1 parent ae986bd commit 72e8e12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/mongodb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
5 changes: 5 additions & 0 deletions stable/mongodb/templates/deployment-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72e8e12

Please sign in to comment.