Files
chart/library/ix-dev/community/readarr/templates/_persistence.tpl
Stavros Kois 7a03a1ed61 fix permission on ixVolumes on initial install, when acls are not enabled (#1882)
* elastic search

* prometheus

* bazarr

* briefkasten

* jellyfin

* lidarr

* prowlarr

* qbit

* radarr

* readarr

* sonarr

* bump
2023-12-17 18:48:07 +02:00

36 lines
1.2 KiB
Smarty

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