mirror of
https://github.com/truenas/charts.git
synced 2026-02-02 18:19:23 +08:00
Setup correct permissions for lotus paths
This commit is contained in:
@@ -58,7 +58,7 @@ questions:
|
||||
schema:
|
||||
type: hostpath
|
||||
required: true
|
||||
- variable: parameterCache
|
||||
- variable: parametercache
|
||||
label: "Filecoin Parameter Cache Volume"
|
||||
schema:
|
||||
type: dict
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user