From 4611b9aa95fafa275f2f07dff765df142ee1d90e Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Tue, 7 Nov 2023 11:56:25 +0100
Subject: [PATCH] Use Recreate strategy when nodowntime is false

---
 shiny-server/Chart.yaml                | 2 +-
 shiny-server/templates/deployment.yaml | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/shiny-server/Chart.yaml b/shiny-server/Chart.yaml
index 9c3b487..51c05cd 100644
--- a/shiny-server/Chart.yaml
+++ b/shiny-server/Chart.yaml
@@ -15,7 +15,7 @@ type: application
 # This is the chart version. This version number should be incremented each time you make changes
 # to the chart and its templates, including the app version.
 # Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 0.5.0
+version: 0.6.0
 
 # This is the version number of the application being deployed. This version number should be
 # incremented each time you make changes to the application. Versions are not expected to
diff --git a/shiny-server/templates/deployment.yaml b/shiny-server/templates/deployment.yaml
index 06dc656..9fee767 100644
--- a/shiny-server/templates/deployment.yaml
+++ b/shiny-server/templates/deployment.yaml
@@ -16,6 +16,9 @@ spec:
     rollingUpdate:
       maxSurge: 1
       maxUnavailable: 0
+{{- else }}
+  strategy:
+    type: Recreate
 {{- end }}
   template:
     metadata:
-- 
GitLab