Add PGID and PUID options (#144)
- Adds PGID as a values.yaml setting that sets PGID env-var - Adds PUID as a values.yaml settings that sets PGID env-var - Adjusts Common Unit test accordingly (both can also in the future be used to set securityContext based containers)
This commit is contained in:
@@ -2,7 +2,7 @@ apiVersion: v2
|
||||
name: common
|
||||
description: Function library for TrueCharts
|
||||
type: library
|
||||
version: 1.0.0
|
||||
version: 1.1.0
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
# upstream_version: 3.0.1
|
||||
keywords:
|
||||
|
||||
@@ -15,28 +15,32 @@ The main container included in the controller.
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if or .Values.env .Values.envTpl .Values.envValueFrom }}
|
||||
env:
|
||||
- name: PUID
|
||||
value: {{ .Values.PUID }}
|
||||
- name: PGID
|
||||
value: {{ .Values.PGID }}
|
||||
{{- if or .Values.env .Values.envTpl .Values.envValueFrom .Values.envVariable }}
|
||||
{{- range $envVariable := .Values.environmentVariables }}
|
||||
{{- if and $envVariable.name $envVariable.value }}
|
||||
- name: {{ $envVariable.name }}
|
||||
value: {{ $envVariable.value | quote }}
|
||||
value: {{ $envVariable.value | quote }}
|
||||
{{- else }}
|
||||
{{- fail "Please specify name/value for environment variable" }}
|
||||
{{- end }}
|
||||
{{- end}}
|
||||
{{- range $key, $value := .Values.env }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- range $key, $value := .Values.envTpl }}
|
||||
- name: {{ $key }}
|
||||
value: {{ tpl $value $ | quote }}
|
||||
- name: {{ $key }}
|
||||
value: {{ tpl $value $ | quote }}
|
||||
{{- end }}
|
||||
{{- range $key, $value := .Values.envValueFrom }}
|
||||
- name: {{ $key }}
|
||||
valueFrom:
|
||||
{{- $value | toYaml | nindent 6 }}
|
||||
- name: {{ $key }}
|
||||
valueFrom:
|
||||
{{- $value | toYaml | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.envFrom }}
|
||||
|
||||
@@ -32,6 +32,7 @@ serviceAccount:
|
||||
# If not set and create is true, a name is generated using the fullname template
|
||||
name: ""
|
||||
|
||||
|
||||
env: {}
|
||||
# TZ: UTC
|
||||
|
||||
@@ -450,6 +451,9 @@ addons:
|
||||
|
||||
## TrueCharts Specific
|
||||
|
||||
PUID: 568
|
||||
PGID: 568
|
||||
|
||||
appAdditionalServicesEnabled: false
|
||||
# appAdditionalServices:
|
||||
# api:
|
||||
|
||||
Reference in New Issue
Block a user