Commit 70b0c8db authored by sonicaj's avatar sonicaj

Add worker_address as a requirement for env variables

parent fbcf9a4e
...@@ -28,6 +28,16 @@ questions: ...@@ -28,6 +28,16 @@ questions:
type: string type: string
$ref: $ref:
- "definitions/timezone" - "definitions/timezone"
- variable: nodeIP
description: "LAN IP address of your TrueNAS server"
group: "Machinaris Configuration"
label: "Worker Address"
schema:
type: string
$ref:
- "definitions/nodeIP"
- variable: machinaris_ui_port - variable: machinaris_ui_port
label: "Machinaris Web UI" label: "Machinaris Web UI"
group: "Networking" group: "Networking"
......
...@@ -44,6 +44,7 @@ spec: ...@@ -44,6 +44,7 @@ spec:
hostPort: 8927 hostPort: 8927
{{ $envList := (default list .Values.environmentVariables) }} {{ $envList := (default list .Values.environmentVariables) }}
{{ $envList = mustAppend $envList (dict "name" "TZ" "value" $.Values.timezone) }} {{ $envList = mustAppend $envList (dict "name" "TZ" "value" $.Values.timezone) }}
{{ $envList = mustAppend $envList (dict "name" "worker_address" "value" $.Values.nodeIP) }}
{{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }} {{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }}
volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }}
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
......
...@@ -12,3 +12,4 @@ image: ...@@ -12,3 +12,4 @@ image:
machinaris_ui_port: 31003 machinaris_ui_port: 31003
timezone: America/Edmonton timezone: America/Edmonton
updateStrategy: Recreate updateStrategy: Recreate
nodeIP: 127.0.0.1
...@@ -28,6 +28,16 @@ questions: ...@@ -28,6 +28,16 @@ questions:
type: string type: string
$ref: $ref:
- "definitions/timezone" - "definitions/timezone"
- variable: nodeIP
description: "LAN IP address of your TrueNAS server"
group: "Machinaris Configuration"
label: "Worker Address"
schema:
type: string
$ref:
- "definitions/nodeIP"
- variable: machinaris_ui_port - variable: machinaris_ui_port
label: "Machinaris Web UI" label: "Machinaris Web UI"
group: "Networking" group: "Networking"
......
...@@ -44,6 +44,7 @@ spec: ...@@ -44,6 +44,7 @@ spec:
hostPort: 8927 hostPort: 8927
{{ $envList := (default list .Values.environmentVariables) }} {{ $envList := (default list .Values.environmentVariables) }}
{{ $envList = mustAppend $envList (dict "name" "TZ" "value" $.Values.timezone) }} {{ $envList = mustAppend $envList (dict "name" "TZ" "value" $.Values.timezone) }}
{{ $envList = mustAppend $envList (dict "name" "worker_address" "value" $.Values.nodeIP) }}
{{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }} {{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }}
volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }}
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
......
...@@ -12,3 +12,4 @@ image: ...@@ -12,3 +12,4 @@ image:
machinaris_ui_port: 31003 machinaris_ui_port: 31003
timezone: America/Edmonton timezone: America/Edmonton
updateStrategy: Recreate updateStrategy: Recreate
nodeIP: 127.0.0.1
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