Commit fe2ebf7b authored by Waqar Ahmed's avatar Waqar Ahmed

Allow specifying extra environment variables for plex

parent af4cb601
...@@ -74,14 +74,6 @@ questions: ...@@ -74,14 +74,6 @@ questions:
type: string type: string
default: "" default: ""
- variable: extraEnv
label: "Environment variables for plex"
group: "Plex Configuration"
schema:
type: dict
additional_attrs: true
attrs: []
- variable: hostNetwork - variable: hostNetwork
label: "Configure Host Network" label: "Configure Host Network"
group: "Networking" group: "Networking"
...@@ -89,6 +81,29 @@ questions: ...@@ -89,6 +81,29 @@ questions:
type: boolean type: boolean
default: false 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 - variable: timezone
label: "Plex container timezone" label: "Plex container timezone"
group: "Plex Configuration" group: "Plex Configuration"
......
...@@ -68,10 +68,10 @@ spec: ...@@ -68,10 +68,10 @@ spec:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
# Extra ENV Values supplied by user # Extra ENV Values supplied by user
{{- range $key, $value := .Values.extraEnv }} {{- range $envVariable := .Values.environmentVariables }}
- name: {{ $key }} - name: {{ $envVariable.name }}
value: {{ $value }} value: {{ $envVariable.value | quote }}
{{- end }} {{- end}}
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /identity path: /identity
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment