diff --git a/stable/mongodb/Chart.yaml b/stable/mongodb/Chart.yaml index 141543bbfceb..013af3ff266e 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 78c9e1d70459..4951598fe672 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