mirror of
https://github.com/truenas/charts.git
synced 2026-05-11 11:06:11 +08:00
36 lines
1.2 KiB
Smarty
36 lines
1.2 KiB
Smarty
{{- define "autobrr.persistence" -}}
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.autobrrStorage.config) | nindent 4 }}
|
|
targetSelector:
|
|
autobrr:
|
|
autobrr:
|
|
mountPath: /config
|
|
{{- if and (eq .Values.autobrrStorage.config.type "ixVolume")
|
|
(not (.Values.autobrrStorage.config.ixVolumeConfig | default dict).aclEnable) }}
|
|
01-permissions:
|
|
mountPath: /mnt/directories/config
|
|
{{- end }}
|
|
tmp:
|
|
enabled: true
|
|
type: emptyDir
|
|
targetSelector:
|
|
autobrr:
|
|
autobrr:
|
|
mountPath: /tmp
|
|
{{- range $idx, $storage := .Values.autobrrStorage.additionalStorages }}
|
|
{{ printf "autobrr-%v:" (int $idx) }}
|
|
enabled: true
|
|
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
|
|
targetSelector:
|
|
autobrr:
|
|
autobrr:
|
|
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 -}}
|