Files
chart/library/ix-dev/community/bazarr/templates/_persistence.tpl
Stavros Kois bd19e4cde4 NAS-122691 / 23.10 / Add bazarr to community train (#1308)
* Add `bazarr` to `community` train

* fix source

* add tpls

* add ci values

* add values

* add UI

* formatting
2023-07-03 14:48:22 +03:00

35 lines
1019 B
Smarty

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