Files
charts/library/ix-dev/community/homepage/templates/_persistence.tpl
T
Stavros Kois cba86b80cf NAS-123063 / 23.10 / Add homepage to community train (#1378)
* add `homepage` to `community` train

* add templates and UI

* update icon

* remove unused values

* fix metadata

* also fix readme's
2023-07-27 20:23:31 +03:00

35 lines
1.0 KiB
Smarty

{{- define "homepage.persistence" -}}
persistence:
config:
enabled: true
type: {{ .Values.homepageStorage.config.type }}
datasetName: {{ .Values.homepageStorage.config.datasetName | default "" }}
hostPath: {{ .Values.homepageStorage.config.hostPath | default "" }}
targetSelector:
homepage:
homepage:
mountPath: /app/config
01-permissions:
mountPath: /mnt/directories/config
tmp:
enabled: true
type: emptyDir
targetSelector:
homepage:
homepage:
mountPath: /tmp
{{- range $idx, $storage := .Values.homepageStorage.additionalStorages }}
{{ printf "homepage-%v" (int $idx) }}:
enabled: true
type: {{ $storage.type }}
datasetName: {{ $storage.datasetName | default "" }}
hostPath: {{ $storage.hostPath | default "" }}
targetSelector:
homepage:
homepage:
mountPath: {{ $storage.mountPath }}
01-permissions:
mountPath: /mnt/directories{{ $storage.mountPath }}
{{- end }}
{{- end -}}