Files
chart/library/ix-dev/community/readarr/templates/_persistence.tpl
Stavros Kois e3fe0a4212 NAS-122677 / 23.10 / Add readarr to community train (#1300)
* Add `readarr` to `community` train

* update common
2023-07-03 14:49:22 +03:00

35 lines
1.0 KiB
Smarty

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