Allow configuring farmr env variable

This commit is contained in:
sonicaj
2021-07-07 22:07:34 +05:00
parent 22fa989faf
commit e8a6ed8abb
3 changed files with 20 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
groups:
- name: "Storage"
description: "Configure Storage for Chia"
- name: "Farmr.net Configuration"
description: "Configure farmr.net support"
- name: "Chia Environment Variables"
description: "Set the environment that will be visible to the container"
@@ -11,10 +13,24 @@ portals:
host:
- "www.truepool.io"
ports:
- 443
- "443"
path: "/kb/truepool-docker-image/"
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
label: "Chia Storage"
group: "Storage"

View File

@@ -30,6 +30,7 @@ spec:
hostPort: 8444
{{ $envList := (default list .Values.environmentVariables) }}
{{ $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 }}
volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }}
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}

View File

@@ -11,3 +11,5 @@ appVolumeMounts:
data:
emptyDir: true
mountPath: "/root/.chia"
farmr_env: "off"