From b152395f71c2499fabed6c4b46e0ddc5ed7214df Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Thu, 13 Jun 2024 11:35:59 +0200
Subject: [PATCH] move fsGroup

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

diff --git a/shiny-server/Chart.yaml b/shiny-server/Chart.yaml
index 9f82396..6616663 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.7.4
+version: 0.7.5
 
 # 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 a0fb8e5..989e58a 100644
--- a/shiny-server/templates/deployment.yaml
+++ b/shiny-server/templates/deployment.yaml
@@ -32,13 +32,15 @@ spec:
       securityContext:
         runAsNonRoot: true
         fsGroupChangePolicy: OnRootMismatch
+        runAsGroup: 999
+        runAsUser: 999
+        fsGroup: 999
       containers:
         - name: rshiny-pod
           image: {{ .Values.imageFullNameAndTag }}
           securityContext:
             runAsGroup: 999
             runAsUser: 999
-            fsGroup: 999
           ports:
             - name: http
               containerPort: 3838
-- 
GitLab