move PUID and UMASK to securityContext.container

This commit is contained in:
Kjeld Schouten-Lebbing
2023-02-26 12:03:13 +01:00
parent d8c665b330
commit 3ede345afc
2 changed files with 8 additions and 8 deletions

View File

@@ -34,8 +34,8 @@ objectData: The object data to be used to render the container.
{{- $fixed := list -}}
{{- $TZ := $objectData.fixedEnv.TZ | default $rootCtx.Values.TZ -}}
{{- $UMASK := $objectData.fixedEnv.UMASK | default $rootCtx.Values.containerOptions.UMASK -}}
{{- $PUID := $objectData.fixedEnv.PUID | default $rootCtx.Values.containerOptions.PUID -}}
{{- $UMASK := $objectData.fixedEnv.UMASK | default $rootCtx.Values.securityContext.container.UMASK -}}
{{- $PUID := $objectData.fixedEnv.PUID | default $rootCtx.Values.securityContext.container.PUID -}}
{{/* calculatedFSGroup is passed from the pod */}}
{{- $PGID := $objectData.calculatedFSGroup -}}

View File

@@ -79,6 +79,12 @@ securityContext:
add: []
drop:
- ALL
# -- PUID for all containers
# Can be overruled per container
PUID: 568
# -- UMASK for all containers
# Can be overruled per container
UMASK: "002"
# -- Pod security context for all pods
# Can be overruled per pod
pod:
@@ -98,12 +104,6 @@ resources:
memory: 50Mi
containerOptions:
# -- PUID for all containers
# Can be overruled per container
PUID: 568
# -- UMASK for all containers
# Can be overruled per container
UMASK: "002"
NVIDIA_CAPS:
- all