Setup correct permissions for lotus paths

This commit is contained in:
sonicaj
2021-10-24 20:20:06 +05:00
parent 842c2dcb63
commit fcf6919479
2 changed files with 11 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ questions:
schema:
type: hostpath
required: true
- variable: parameterCache
- variable: parametercache
label: "Filecoin Parameter Cache Volume"
schema:
type: dict

View File

@@ -17,9 +17,19 @@ spec:
spec:
# FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router
hostNetwork: {{ include "hostNetworkingEnabled" . }}
initContainers:
- name: fil-init
image: "debian:bullseye-slim"
imagePullPolicy: "IfNotPresent"
command: ['sh', '-c', "chown -R 532:532 {{ .Values.appVolumeMounts.data.mountPath }} {{ .Values.appVolumeMounts.parametercache.mountPath }}"]
{{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }}
containers:
- name: {{ .Chart.Name }}
{{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
command:
- "sh"
- "-c"
- "/docker-lotus-entrypoint.sh -help && sleep infinity"
volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }}
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
- name: extrappvolume-{{ $index }}