Commit fcf69194 authored by sonicaj's avatar sonicaj

Setup correct permissions for lotus paths

parent 842c2dcb
...@@ -58,7 +58,7 @@ questions: ...@@ -58,7 +58,7 @@ questions:
schema: schema:
type: hostpath type: hostpath
required: true required: true
- variable: parameterCache - variable: parametercache
label: "Filecoin Parameter Cache Volume" label: "Filecoin Parameter Cache Volume"
schema: schema:
type: dict type: dict
......
...@@ -17,9 +17,19 @@ spec: ...@@ -17,9 +17,19 @@ spec:
spec: spec:
# FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router # FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router
hostNetwork: {{ include "hostNetworkingEnabled" . }} 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: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
{{ include "common.containers.imageConfig" .Values.image | nindent 10 }} {{ 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 }} volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }}
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
- name: extrappvolume-{{ $index }} - name: extrappvolume-{{ $index }}
......
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