Skip to content
Snippets Groups Projects
Commit edeaaa80 authored by michael.koch's avatar michael.koch
Browse files

Changed: Helm: Make security context configuration overwritable

parent 1f9fdad9
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ type: application ...@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # 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. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.0.4 version: 3.0.5
# This is the version number of the application being deployed. This version number should be # 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 # incremented each time you make changes to the application. Versions are not expected to
...@@ -24,5 +24,5 @@ version: 3.0.4 ...@@ -24,5 +24,5 @@ version: 3.0.4
appVersion: "2.0.2" appVersion: "2.0.2"
dependencies: dependencies:
- name: ox-common - name: ox-common
version: ~1.0.33 version: ~1.0.38
repository: "oci://registry.open-xchange.com/appsuite-core-internal/charts" repository: "oci://registry.open-xchange.com/appsuite-core-internal/charts"
...@@ -19,7 +19,7 @@ spec: ...@@ -19,7 +19,7 @@ spec:
spec: {{ include "ox-common.pods.podSpec" (dict "podRoot" .Values "global" $ "context" . ) | nindent 6 }} spec: {{ include "ox-common.pods.podSpec" (dict "podRoot" .Values "global" $ "context" . ) | nindent 6 }}
containers: containers:
- name: main - name: main
securityContext: {{ toYaml .Values.securityContext | nindent 12 }} {{- include "ox-common.containers.securityContext" (dict "podRoot" .Values "context" . "global" $) | nindent 10 }}
image: {{ include "ox-common.images.image" (dict "imageRoot" .Values.image "global" $ "context" . ) }} image: {{ include "ox-common.images.image" (dict "imageRoot" .Values.image "global" $ "context" . ) }}
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env: env:
......
...@@ -18,7 +18,7 @@ spec: ...@@ -18,7 +18,7 @@ spec:
spec: {{ include "ox-common.pods.podSpec" (dict "podRoot" .Values "global" $ "context" . ) | nindent 6 }} spec: {{ include "ox-common.pods.podSpec" (dict "podRoot" .Values "global" $ "context" . ) | nindent 6 }}
containers: containers:
- name: main - name: main
securityContext: {{ toYaml .Values.securityContext | nindent 12 }} {{- include "ox-common.containers.securityContext" (dict "podRoot" .Values "context" . "global" $) | nindent 10 }}
image: {{ include "ox-common.images.image" (dict "imageRoot" .Values.image "global" $ "context" . ) }} image: {{ include "ox-common.images.image" (dict "imageRoot" .Values.image "global" $ "context" . ) }}
command: ["/nodejs/bin/node", "src/updater.js"] command: ["/nodejs/bin/node", "src/updater.js"]
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
......
...@@ -26,12 +26,16 @@ fullnameOverride: "" ...@@ -26,12 +26,16 @@ fullnameOverride: ""
podAnnotations: podAnnotations:
logging.open-xchange.com/format: "appsuite-json" logging.open-xchange.com/format: "appsuite-json"
podSecurityContext: podSecurityContext: {}
defaultPodSecurityContext:
runAsNonRoot: true runAsNonRoot: true
runAsUser: 1000 runAsUser: 1000
runAsGroup: 1000 runAsGroup: 1000
securityContext: securityContext: {}
defaultSecurityContext:
runAsNonRoot: true runAsNonRoot: true
runAsUser: 1000 runAsUser: 1000
runAsGroup: 1000 runAsGroup: 1000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment