From e4d2bc18373b37e159e97e95e664272dce0d0f0b Mon Sep 17 00:00:00 2001 From: Feleuxens Date: Thu, 14 Dec 2023 12:43:03 +0100 Subject: [PATCH] Fix securitycontext --- radarr/Chart.yaml | 2 +- radarr/templates/deployment.yaml | 3 +++ radarr/values.yaml | 3 +-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/radarr/Chart.yaml b/radarr/Chart.yaml index 172e95d..866e2c2 100644 --- a/radarr/Chart.yaml +++ b/radarr/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.1.0 +version: 0.1.1 # 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/radarr/templates/deployment.yaml b/radarr/templates/deployment.yaml index 187da87..86d1106 100644 --- a/radarr/templates/deployment.yaml +++ b/radarr/templates/deployment.yaml @@ -23,7 +23,10 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} securityContext: + fsGroup: {{ .Values.guid | default 1000 }} + {{- if .Values.podSecurityContext }} {{- toYaml .Values.podSecurityContext | nindent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} securityContext: diff --git a/radarr/values.yaml b/radarr/values.yaml index 864f650..6fc0de9 100644 --- a/radarr/values.yaml +++ b/radarr/values.yaml @@ -44,9 +44,8 @@ affinity: {} ## @param podAnnotations podAnnotations: {} -## @param podSecurityContext +## @param podSecurityContext Additional pod security context. fsGroup is already set podSecurityContext: {} - # fsGroup: 2000 ## @param securityContext securityContext: {}