(feat) Dynamically set PGID, GID and GROUP_ID (#1091)
* base PGID on fsGroup * also remove PGID from questions.yaml * remove mistake * small fix * fix first test * fix linting * always set PUID to 568 * use quotes for env vars (obviously)
This commit is contained in:
committed by
GitHub
parent
1a7a85d772
commit
308ba8accf
@@ -15,4 +15,4 @@ maintainers:
|
||||
name: common
|
||||
sources: null
|
||||
type: library
|
||||
version: 8.1.1
|
||||
version: 8.2.0
|
||||
|
||||
@@ -3,12 +3,7 @@ This template serves as the blueprint for the mountPermissions job that is run
|
||||
before chart installation.
|
||||
*/}}
|
||||
{{- define "common.controller.autopermissions" -}}
|
||||
|
||||
{{- $group := 568 -}}
|
||||
{{- if .Values.env -}}
|
||||
{{- $group = dig "PGID" $group .Values.env -}}
|
||||
{{- end -}}
|
||||
{{- $group = dig "fsGroup" $group .Values.podSecurityContext -}}
|
||||
{{- $group := .Values.podSecurityContext.fsGroup -}}
|
||||
{{- $hostPathMounts := dict -}}
|
||||
{{- range $name, $mount := .Values.persistence -}}
|
||||
{{- if and $mount.enabled $mount.setPermissions -}}
|
||||
|
||||
@@ -35,6 +35,12 @@
|
||||
{{- end }}
|
||||
|
||||
env:
|
||||
- name: PGID
|
||||
value: {{ .Values.podSecurityContext.fsGroup | quote }}
|
||||
- name: GROUP_ID
|
||||
value: {{ .Values.podSecurityContext.fsGroup | quote }}
|
||||
- name: GID
|
||||
value: {{ .Values.podSecurityContext.fsGroup | quote }}
|
||||
{{- if or ( .Values.securityContext.readOnlyRootFilesystem ) ( .Values.securityContext.runAsNonRoot ) }}
|
||||
- name: S6_READ_ONLY_ROOT
|
||||
value: "1"
|
||||
|
||||
@@ -85,12 +85,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -27,9 +27,9 @@ env:
|
||||
# -- Set the container timezone
|
||||
TZ: UTC
|
||||
# -- Specify the user ID the application will run as
|
||||
PUID: "1001"
|
||||
# -- Specify the group ID the application will run as
|
||||
PGID: "1001"
|
||||
PUID: 568
|
||||
|
||||
|
||||
# -- Used to set the base path for reverse proxies eg. /booksonic, /books, etc.
|
||||
CONTEXT_PATH: # "url-base"
|
||||
# -- For passing additional java options. For some reverse proxies, you may need to pass `JAVA_OPTS=-Dserver.use-forward-headers=true` for airsonic to generate the proper URL schemes.
|
||||
|
||||
@@ -14,7 +14,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
@@ -27,9 +27,9 @@ env:
|
||||
# -- Set the container timezone
|
||||
TZ: UTC
|
||||
# -- Specify the user ID the application will run as
|
||||
PUID: "568"
|
||||
# -- Specify the group ID the application will run as
|
||||
PGID: "568"
|
||||
PUID: 568
|
||||
|
||||
|
||||
# -- Used to set the base path for reverse proxies eg. /booksonic, /books, etc.
|
||||
# CONTEXT_PATH=url-base
|
||||
|
||||
|
||||
@@ -84,12 +84,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -22,7 +22,7 @@ service:
|
||||
env: {}
|
||||
# TZ:
|
||||
# PUID:
|
||||
# PGID:
|
||||
|
||||
# UMASK:
|
||||
# DOCKER_MODS:
|
||||
|
||||
|
||||
@@ -29,9 +29,9 @@ env:
|
||||
# -- Set the container timezone
|
||||
TZ: UTC
|
||||
# -- Specify the user ID the application will run as
|
||||
PUID: "1001"
|
||||
# -- Specify the group ID the application will run as
|
||||
PGID: "1001"
|
||||
PUID: 568
|
||||
|
||||
|
||||
# -- Username for the calibre gui
|
||||
GUAC_USER:
|
||||
# -- Password's md5 hash for the calibre gui
|
||||
|
||||
@@ -30,7 +30,7 @@ serviceList:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
@@ -12,7 +12,7 @@ image:
|
||||
envTpl:
|
||||
# Permissions Settings
|
||||
USER_ID: "{{ .Values.env.PUID }}"
|
||||
GROUP_ID: "{{ .Values.env.PGID }}"
|
||||
|
||||
##
|
||||
# Most other defaults are set in questions.yaml
|
||||
# For other options please refer to the wiki, default_values.yaml or the common library chart
|
||||
|
||||
@@ -86,12 +86,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -23,11 +23,11 @@ podSecurityContext:
|
||||
envTpl:
|
||||
# Permissions Settings
|
||||
USER_ID: "{{ .Values.env.PUID }}"
|
||||
GROUP_ID: "{{ .Values.env.PGID }}"
|
||||
|
||||
|
||||
env:
|
||||
PUID: "568"
|
||||
PGID: "568"
|
||||
PUID: 568
|
||||
|
||||
# TZ: UTC
|
||||
VISION-FACE: "True"
|
||||
VISION-DETECTION: "True"
|
||||
|
||||
@@ -85,12 +85,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -19,9 +19,7 @@ env:
|
||||
# -- Set the container timezone
|
||||
TZ: UTC
|
||||
# -- Specify the user ID the application will run as
|
||||
PUID: 1001
|
||||
# -- Specify the group ID the application will run as
|
||||
PGID: 1001
|
||||
PUID: 568
|
||||
|
||||
# -- Configures service settings for the chart.
|
||||
# @default -- See values.yaml
|
||||
|
||||
@@ -27,9 +27,7 @@ env:
|
||||
# -- Set the container timezone
|
||||
TZ: UTC
|
||||
# -- Specify the user ID the application will run as
|
||||
PUID: "1000"
|
||||
# -- Specify the group ID the application will run as
|
||||
PGID: "1000"
|
||||
PUID: 568
|
||||
|
||||
# -- Configures service settings for the chart.
|
||||
# @default -- See values.yaml
|
||||
|
||||
@@ -84,12 +84,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -22,7 +22,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
@@ -84,12 +84,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -22,7 +22,7 @@ service:
|
||||
env: {}
|
||||
# TZ:
|
||||
# PUID:
|
||||
# PGID:
|
||||
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
@@ -13,7 +13,7 @@ image:
|
||||
envTpl:
|
||||
# Permissions Settings
|
||||
USER_ID: "{{ .Values.env.PUID }}"
|
||||
GROUP_ID: "{{ .Values.env.PGID }}"
|
||||
|
||||
##
|
||||
# Most other defaults are set in questions.yaml
|
||||
# For other options please refer to the wiki, default_values.yaml or the common library chart
|
||||
|
||||
@@ -85,12 +85,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -29,12 +29,12 @@ service:
|
||||
envTpl:
|
||||
# Permissions Settings
|
||||
USER_ID: "{{ .Values.env.PUID }}"
|
||||
GROUP_ID: "{{ .Values.env.PGID }}"
|
||||
|
||||
|
||||
env:
|
||||
# Permissions Settings
|
||||
PUID: "568"
|
||||
PGID: "568"
|
||||
PUID: 568
|
||||
|
||||
# General Settings
|
||||
KEEP_APP_RUNNING: "0"
|
||||
CLEAN_TMP_DIR: "1"
|
||||
|
||||
@@ -84,12 +84,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -22,7 +22,7 @@ service:
|
||||
env: {}
|
||||
# TZ:
|
||||
# PUID:
|
||||
# PGID:
|
||||
|
||||
|
||||
probes:
|
||||
startup:
|
||||
|
||||
@@ -100,12 +100,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -26,9 +26,7 @@ env:
|
||||
# -- Set the container timezone
|
||||
TZ: UTC
|
||||
# -- Specify the user ID the application will run as
|
||||
PUID: "1001"
|
||||
# -- Specify the group ID the application will run as
|
||||
PGID: "1001"
|
||||
PUID: 568
|
||||
|
||||
# -- Configures service settings for the chart.
|
||||
# @default -- See values.yaml
|
||||
|
||||
@@ -28,7 +28,7 @@ probes:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
@@ -13,7 +13,7 @@ image:
|
||||
envTpl:
|
||||
# Permissions Settings
|
||||
USER_ID: "{{ .Values.env.PUID }}"
|
||||
GROUP_ID: "{{ .Values.env.PGID }}"
|
||||
|
||||
|
||||
##
|
||||
# Most other defaults are set in questions.yaml
|
||||
|
||||
@@ -31,12 +31,12 @@ service:
|
||||
envTpl:
|
||||
# Permissions Settings
|
||||
USER_ID: "{{ .Values.env.PUID }}"
|
||||
GROUP_ID: "{{ .Values.env.PGID }}"
|
||||
|
||||
|
||||
env:
|
||||
# Permissions Settings
|
||||
PUID: "568"
|
||||
PGID: "568"
|
||||
PUID: 568
|
||||
|
||||
# General Settings
|
||||
KEEP_APP_RUNNING: "0"
|
||||
CLEAN_TMP_DIR: "1"
|
||||
|
||||
@@ -76,12 +76,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -84,12 +84,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -21,7 +21,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
@@ -27,9 +27,9 @@ env:
|
||||
# -- Set the container timezone
|
||||
TZ: UTC
|
||||
# -- Specify the user ID the application will run as
|
||||
PUID: "1001"
|
||||
# -- Specify the group ID the application will run as
|
||||
PGID: "1001"
|
||||
PUID: 568
|
||||
|
||||
|
||||
# PASSWORD:
|
||||
# CUSTOM_RESULTS:
|
||||
# DB_TYPE:
|
||||
|
||||
@@ -17,7 +17,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
probes:
|
||||
liveness:
|
||||
|
||||
@@ -84,12 +84,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -22,7 +22,7 @@ service:
|
||||
env: {}
|
||||
# PHP_TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
@@ -26,9 +26,7 @@ env:
|
||||
# -- Set the container timezone
|
||||
TZ: UTC
|
||||
# -- Specify the user ID the application will run as
|
||||
PUID: "1000"
|
||||
# -- Specify the group ID the application will run as
|
||||
PGID: "1000"
|
||||
PUID: 568
|
||||
|
||||
# -- Configures service settings for the chart.
|
||||
# @default -- See values.yaml
|
||||
|
||||
@@ -17,7 +17,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
probes:
|
||||
liveness:
|
||||
|
||||
@@ -17,7 +17,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
@@ -84,12 +84,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -22,7 +22,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
@@ -10,14 +10,11 @@ securityContext:
|
||||
|
||||
podSecurityContext:
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
runAsGroup: 20
|
||||
|
||||
env:
|
||||
TZ: UTC
|
||||
PUID: "568"
|
||||
# currently needed for working with /dev/ttyXYZ devices
|
||||
# see: https://github.com/linuxserver/docker-oscam/issues/21
|
||||
PGID: "20"
|
||||
PUID: 568
|
||||
|
||||
service:
|
||||
main:
|
||||
|
||||
@@ -26,9 +26,7 @@ env:
|
||||
# -- Set the container timezone
|
||||
TZ: UTC
|
||||
# -- Specify the user ID the application will run as
|
||||
PUID: "1001"
|
||||
# -- Specify the group ID the application will run as
|
||||
PGID: "1001"
|
||||
PUID: 568
|
||||
|
||||
# -- Configures service settings for the chart.
|
||||
# @default -- See values.yaml
|
||||
|
||||
@@ -11,7 +11,7 @@ securityContext:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
# UMASK: 022
|
||||
|
||||
service:
|
||||
|
||||
@@ -17,7 +17,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
probes:
|
||||
liveness:
|
||||
|
||||
@@ -17,7 +17,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
probes:
|
||||
liveness:
|
||||
|
||||
@@ -26,9 +26,9 @@ env:
|
||||
# -- Set the container timezone
|
||||
TZ: UTC
|
||||
# -- Specify the user ID the application will run as
|
||||
PUID: "1001"
|
||||
# -- Specify the group ID the application will run as
|
||||
PGID: "1001"
|
||||
PUID: 568
|
||||
|
||||
|
||||
# -- Sets default UMASK
|
||||
UMASK: # 022
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
@@ -14,7 +14,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
probes:
|
||||
liveness:
|
||||
|
||||
@@ -14,7 +14,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
@@ -26,7 +26,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
# TRANSMISSION_ALT_SPEED_DOWN: 50
|
||||
# TRANSMISSION_ALT_SPEED_ENABLED: false
|
||||
# TRANSMISSION_ALT_SPEED_TIME_BEGIN: 540
|
||||
|
||||
@@ -84,12 +84,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -22,7 +22,7 @@ service:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
persistence:
|
||||
data:
|
||||
|
||||
@@ -84,12 +84,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -15,7 +15,6 @@ podSecurityContext:
|
||||
# See https://github.com/linuxserver/docker-tvheadend#parameters
|
||||
env: {}
|
||||
# PUID: 1000
|
||||
# PGID: 1000
|
||||
# TZ: Europe/London
|
||||
# RUN_OPTS: <run options here>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ image:
|
||||
envTpl:
|
||||
# Permissions Settings
|
||||
UNIFI_GID: "{{ .Values.env.PUID }}"
|
||||
UNIFI_UID: "{{ .Values.env.PGID }}"
|
||||
UNIFI_UID: "{{ .Values.podSecurityContext.fsGroup }}"
|
||||
##
|
||||
# Most other defaults are set in questions.yaml
|
||||
# For other options please refer to the wiki, default_values.yaml or the common library chart
|
||||
|
||||
@@ -84,12 +84,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
- variable: PGID
|
||||
label: "PGID"
|
||||
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
- variable: UMASK
|
||||
label: "UMASK"
|
||||
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
|
||||
|
||||
@@ -8,7 +8,7 @@ image:
|
||||
envTpl:
|
||||
# Permissions Settings
|
||||
UNIFI_GID: "{{ .Values.env.PUID }}"
|
||||
UNIFI_UID: "{{ .Values.env.PGID }}"
|
||||
UNIFI_UID: "{{ .Values.podSecurityContext.fsGroup }}"
|
||||
|
||||
service:
|
||||
main:
|
||||
@@ -64,8 +64,8 @@ podSecurityContext:
|
||||
|
||||
env:
|
||||
# TZ:
|
||||
PUID: "568"
|
||||
PGID: "568"
|
||||
PUID: 568
|
||||
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
@@ -18,7 +18,7 @@ portal:
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
# PUID: 1001
|
||||
# PGID: 1001
|
||||
|
||||
|
||||
probes:
|
||||
liveness:
|
||||
|
||||
Reference in New Issue
Block a user