Files
chart/library/ix-dev/community/homarr/templates/_persistence.tpl
Stavros Kois 4171105564 NAS-122861 / 23.10 / add homarr to community train (#1341)
* 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
2023-07-11 17:02:45 +03:00

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 -}}