mirror of
https://github.com/truenas/charts.git
synced 2026-05-12 11:36:10 +08:00
* add `homarr` to `community` train * add `homarr` to `community` train * add templates and values * Update library/ix-dev/community/homarr/item.yaml * Update library/ix-dev/community/homarr/Chart.yaml
46 lines
1.4 KiB
Smarty
46 lines
1.4 KiB
Smarty
{{- define "homarr.persistence" -}}
|
|
persistence:
|
|
configs:
|
|
enabled: true
|
|
type: {{ .Values.homarrStorage.configs.type }}
|
|
datasetName: {{ .Values.homarrStorage.configs.datasetName | default "" }}
|
|
hostPath: {{ .Values.homarrStorage.configs.hostPath | default "" }}
|
|
targetSelector:
|
|
homarr:
|
|
homarr:
|
|
mountPath: /app/data/configs
|
|
01-permissions:
|
|
mountPath: /mnt/directories/configs
|
|
icons:
|
|
enabled: true
|
|
type: {{ .Values.homarrStorage.icons.type }}
|
|
datasetName: {{ .Values.homarrStorage.icons.datasetName | default "" }}
|
|
hostPath: {{ .Values.homarrStorage.icons.hostPath | default "" }}
|
|
targetSelector:
|
|
homarr:
|
|
homarr:
|
|
mountPath: /app/data/icons
|
|
01-permissions:
|
|
mountPath: /mnt/directories/icons
|
|
tmp:
|
|
enabled: true
|
|
type: emptyDir
|
|
targetSelector:
|
|
homarr:
|
|
homarr:
|
|
mountPath: /tmp
|
|
{{- range $idx, $storage := .Values.homarrStorage.additionalStorages }}
|
|
{{ printf "homarr-%v" (int $idx) }}:
|
|
enabled: true
|
|
type: {{ $storage.type }}
|
|
datasetName: {{ $storage.datasetName | default "" }}
|
|
hostPath: {{ $storage.hostPath | default "" }}
|
|
targetSelector:
|
|
homarr:
|
|
homarr:
|
|
mountPath: {{ $storage.mountPath }}
|
|
01-permissions:
|
|
mountPath: /mnt/directories{{ $storage.mountPath }}
|
|
{{- end }}
|
|
{{- end -}}
|