mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 17:52:13 +08:00
Allow specifying extra environment variables for plex
This commit is contained in:
@@ -74,14 +74,6 @@ questions:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
- variable: extraEnv
|
||||
label: "Environment variables for plex"
|
||||
group: "Plex Configuration"
|
||||
schema:
|
||||
type: dict
|
||||
additional_attrs: true
|
||||
attrs: []
|
||||
|
||||
- variable: hostNetwork
|
||||
label: "Configure Host Network"
|
||||
group: "Networking"
|
||||
@@ -89,6 +81,29 @@ questions:
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
- variable: environmentVariables
|
||||
label: "Environment Variables for Plex"
|
||||
group: "Plex Configuration"
|
||||
schema:
|
||||
type: list
|
||||
default: []
|
||||
items:
|
||||
- variable: environmentVariable
|
||||
label: "Environment Variable"
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: name
|
||||
label: "Name"
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
- variable: value
|
||||
label: "Value"
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
- variable: timezone
|
||||
label: "Plex container timezone"
|
||||
group: "Plex Configuration"
|
||||
|
||||
@@ -68,10 +68,10 @@ spec:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
# Extra ENV Values supplied by user
|
||||
{{- range $key, $value := .Values.extraEnv }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value }}
|
||||
{{- end }}
|
||||
{{- range $envVariable := .Values.environmentVariables }}
|
||||
- name: {{ $envVariable.name }}
|
||||
value: {{ $envVariable.value | quote }}
|
||||
{{- end}}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /identity
|
||||
|
||||
Reference in New Issue
Block a user