From 1c33be2e62c00b998908944b5aa94c4e4c3f0fcf Mon Sep 17 00:00:00 2001 From: Viktor Date: Mon, 15 Jul 2024 15:57:15 +0200 Subject: [PATCH] security context added --- charts/app-mendix/Chart.yaml | 2 +- charts/app-mendix/templates/statefulset.yaml | 4 ++++ charts/app-mendix/values.yaml | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/charts/app-mendix/Chart.yaml b/charts/app-mendix/Chart.yaml index 1fc3ef7..5df5694 100644 --- a/charts/app-mendix/Chart.yaml +++ b/charts/app-mendix/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: app-mendix -version: 3.0.3 +version: 3.0.4 description: Mendix Application Chart. icon: https://cinaq.github.io/helm-charts/icons/mendix-logo.png maintainers: diff --git a/charts/app-mendix/templates/statefulset.yaml b/charts/app-mendix/templates/statefulset.yaml index 05b153d..19e69b3 100644 --- a/charts/app-mendix/templates/statefulset.yaml +++ b/charts/app-mendix/templates/statefulset.yaml @@ -23,6 +23,10 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + {{- if .Values.podSecurityContext }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/charts/app-mendix/values.yaml b/charts/app-mendix/values.yaml index 81545f4..18e582f 100644 --- a/charts/app-mendix/values.yaml +++ b/charts/app-mendix/values.yaml @@ -8,6 +8,11 @@ image: imagePullSecrets: - name: dockerconfigjson +podSecurityContext: {} + # runAsUser: 1000 + # runAsGroup: 1000 + # fsGroup: 1000 + licenseId: licenseKey: