|
|
@@ -18,11 +18,22 @@ spec:
|
|
|
containers:
|
|
|
- name: {{ .Chart.Name }}
|
|
|
{{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
|
|
|
- {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }}
|
|
|
+ volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }}
|
|
|
+ {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
|
|
|
+ - name: extrappvolume-{{ $index }}
|
|
|
+ mountPath: {{ $hostPathConfiguration.mountPath }}
|
|
|
+ {{ end }}
|
|
|
ports:
|
|
|
- name: chia-network
|
|
|
protocol: TCP
|
|
|
containerPort: 8444
|
|
|
hostPort: 8444
|
|
|
-{{ include "common.containers.allEnvironmentVariables" .Values | nindent 10 }}
|
|
|
-{{ include "common.storage.allAppVolumes" .Values | nindent 6 }}
|
|
|
+ {{ $envList := (default list .Values.environmentVariables) }}
|
|
|
+ {{ $envList = mustAppend $envList (dict "name" "keys" "value" "/plots/keyfile") }}
|
|
|
+ {{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }}
|
|
|
+ volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }}
|
|
|
+ {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
|
|
|
+ - name: extrappvolume-{{ $index }}
|
|
|
+ hostPath:
|
|
|
+ path: {{ $hostPathConfiguration.hostPath }}
|
|
|
+ {{ end }}
|