Files
chart/library/ix-dev/community/metube/templates/_persistence.tpl
Stavros Kois a06f8b7796 Metube - migrate storage section (adds acl) (#1959)
* add migration

* update templates

* bump version

* update values

* update ui

* bump common
2023-12-28 12:07:26 +02:00

36 lines
1.2 KiB
Smarty

{{- define "metube.persistence" -}}
persistence:
downloads:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.metubeStorage.downloads) | nindent 4 }}
targetSelector:
metube:
metube:
mountPath: /downloads
{{- if and (eq .Values.metubeStorage.downloads.type "ixVolume")
(not (.Values.metubeStorage.downloads.ixVolumeConfig | default dict).aclEnable) }}
01-permissions:
mountPath: /mnt/directories/downloads
{{- end }}
tmp:
enabled: true
type: emptyDir
targetSelector:
metube:
metube:
mountPath: /tmp
{{- range $idx, $storage := .Values.metubeStorage.additionalStorages }}
{{ printf "metube-%v" (int $idx) }}:
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
enabled: true
targetSelector:
metube:
metube:
mountPath: {{ $storage.mountPath }}
{{- if and (eq $storage.type "ixVolume") (not ($storage.ixVolumeConfig | default dict).aclEnable) }}
01-permissions:
mountPath: /mnt/directories{{ $storage.mountPath }}
{{- end }}
{{- end }}
{{- end -}}