From d1a1600b4039b362db7bfe94e993e3aef64650f9 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Fri, 20 Dec 2019 20:29:32 +0530 Subject: [PATCH] [stable/mongodb]: configure update strategy for deployments (#19720) Signed-off-by: Sameer Naik --- 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 d81e1009dd..723d1bfcd0 100644 --- a/stable/mongodb/Chart.yaml +++ b/stable/mongodb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mongodb -version: 7.6.1 +version: 7.6.2 appVersion: 4.0.14 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 58ad0c5624..93e413ed4b 100644 --- a/stable/mongodb/templates/deployment-standalone.yaml +++ b/stable/mongodb/templates/deployment-standalone.yaml @@ -16,6 +16,11 @@ metadata: {{ toYaml . | indent 4 }} {{- end }} spec: + strategy: + type: {{ .Values.updateStrategy.type }} + {{- if (eq "Recreate" .Values.updateStrategy.type) }} + rollingUpdate: null + {{- end }} selector: matchLabels: app: {{ template "mongodb.name" . }}