Files
charts/library/ix-dev/community/recyclarr/templates/_persistence.tpl
T
Stavros Kois c9395376e4 NAS-122968 / 23.10 / add recyclarr to community train (#1359)
* add `recyclarr` to `community` train

* add templates

* add ui

* fix keywords

* bump
2023-07-17 16:08:38 +03:00

35 lines
1.0 KiB
Smarty

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