Files
charts/library/ix-dev/community/prowlarr/templates/_persistence.tpl
T
Stavros Kois 314df69d8b NAS-122807 / 23.10 / add prowlarr to community train (#1329)
* add `prowlarr` to `community` train

* add templates

* add test value

* add questions

* bump common
2023-07-06 14:57:53 +03: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 -}}