|
@@ -1,4 +1,7 @@
|
|
|
{{- define "npm.workload" -}}
|
|
|
+{{- if not .Values.npmID -}}
|
|
|
+ {{- $_ := set .Values "npmID" dict -}}
|
|
|
+{{- end }}
|
|
|
workload:
|
|
|
npm:
|
|
|
enabled: true
|
|
@@ -7,7 +10,7 @@ workload:
|
|
|
podSpec:
|
|
|
hostNetwork: false
|
|
|
securityContext:
|
|
|
- fsGroup: 1000
|
|
|
+ fsGroup: {{ .Values.npmID.group | default 1000 }}
|
|
|
containers:
|
|
|
npm:
|
|
|
enabled: true
|
|
@@ -30,9 +33,7 @@ workload:
|
|
|
# Needed for: Nginx Service
|
|
|
- FOWNER
|
|
|
fixedEnv:
|
|
|
- # FIXME: Revisit once upstream irons out some issues in regarids with PUID.
|
|
|
- # Make sure 568 PUID works before exposing
|
|
|
- PUID: 1000
|
|
|
+ PUID: {{ .Values.npmID.user | default 1000 }}
|
|
|
env:
|
|
|
DISABLE_IPV6: true
|
|
|
DB_SQLITE_FILE: /data/database.sqlite
|