Files
chart/community/prowlarr/1.0.7/templates/_persistence.tpl
2023-08-14 13:28:56 +00:00

35 lines
1.0 KiB
Smarty

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