Files
chart/library/ix-dev/community/sabnzbd/templates/_persistence.tpl
Stavros Kois bbf4b8020b NAS-123103 / 23.10 / add sabnzbd to community train (#1383)
* add `sabnzbd` to `community` train

* add templates

* add ui

* update values on test
2023-07-21 19:40:48 +03:00

35 lines
1.0 KiB
Smarty

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