mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-05 01:06:22 -03:00
move PUID and UMASK to securityContext.container
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user