Commit e8a6ed8a authored by sonicaj's avatar sonicaj

Allow configuring farmr env variable

parent 22fa989f
groups: groups:
- name: "Storage" - name: "Storage"
description: "Configure Storage for Chia" description: "Configure Storage for Chia"
- name: "Farmr.net Configuration"
description: "Configure farmr.net support"
- name: "Chia Environment Variables" - name: "Chia Environment Variables"
description: "Set the environment that will be visible to the container" description: "Set the environment that will be visible to the container"
...@@ -11,10 +13,24 @@ portals: ...@@ -11,10 +13,24 @@ portals:
host: host:
- "www.truepool.io" - "www.truepool.io"
ports: ports:
- 443 - "443"
path: "/kb/truepool-docker-image/" path: "/kb/truepool-docker-image/"
questions: questions:
- variable: farmr_env
label: "Enable 'farmr.net' support"
group: "Farmr.net Configuration"
description: "Configure 'farmr.net' support for chia"
schema:
type: string
default: "off"
enum:
- value: "off"
description: "OFF"
- value: "farmer"
description: "FARMER"
- value: "harvester"
description: "HARVESTER"
- variable: appVolumeMounts - variable: appVolumeMounts
label: "Chia Storage" label: "Chia Storage"
group: "Storage" group: "Storage"
......
...@@ -30,6 +30,7 @@ spec: ...@@ -30,6 +30,7 @@ spec:
hostPort: 8444 hostPort: 8444
{{ $envList := (default list .Values.environmentVariables) }} {{ $envList := (default list .Values.environmentVariables) }}
{{ $envList = mustAppend $envList (dict "name" "keys" "value" "/plots/keyfile") }} {{ $envList = mustAppend $envList (dict "name" "keys" "value" "/plots/keyfile") }}
{{ $envList = mustAppend $envList (dict "name" "farmr" "value" $.Values.farmr_env) }}
{{ 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 }}
......
...@@ -11,3 +11,5 @@ appVolumeMounts: ...@@ -11,3 +11,5 @@ appVolumeMounts:
data: data:
emptyDir: true emptyDir: true
mountPath: "/root/.chia" mountPath: "/root/.chia"
farmr_env: "off"
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