Files
charts/library/ix-dev/community/autobrr/templates/_persistence.tpl
T
Stavros Kois 63a34d47ee NAS-122838 / 23.10 / add autobrr to community apps (#1337)
* add `autobrr` to `community` apps

* regen

* host

* Update library/ix-dev/community/autobrr/Chart.yaml

* Update library/ix-dev/community/autobrr/upgrade_strategy
2023-07-10 13:23:50 +03:00

35 lines
1.0 KiB
Smarty

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