mirror of
https://github.com/truenas/charts.git
synced 2026-04-15 19:20:23 +08:00
50 lines
1.7 KiB
Smarty
50 lines
1.7 KiB
Smarty
{{- define "kapowarr.persistence" -}}
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
type: {{ .Values.kapowarrStorage.config.type }}
|
|
datasetName: {{ .Values.kapowarrStorage.config.datasetName | default "" }}
|
|
hostPath: {{ .Values.kapowarrStorage.config.hostPath | default "" }}
|
|
targetSelector:
|
|
kapowarr:
|
|
kapowarr:
|
|
mountPath: /app/db
|
|
01-permissions:
|
|
mountPath: /mnt/directories/config
|
|
downloads:
|
|
enabled: true
|
|
type: {{ .Values.kapowarrStorage.downloads.type }}
|
|
datasetName: {{ .Values.kapowarrStorage.downloads.datasetName | default "" }}
|
|
hostPath: {{ .Values.kapowarrStorage.downloads.hostPath | default "" }}
|
|
targetSelector:
|
|
kapowarr:
|
|
kapowarr:
|
|
mountPath: /app/temp_downloads
|
|
01-permissions:
|
|
mountPath: /mnt/directories/downloads
|
|
content:
|
|
enabled: true
|
|
type: {{ .Values.kapowarrStorage.content.type }}
|
|
datasetName: {{ .Values.kapowarrStorage.content.datasetName | default "" }}
|
|
hostPath: {{ .Values.kapowarrStorage.content.hostPath | default "" }}
|
|
targetSelector:
|
|
kapowarr:
|
|
kapowarr:
|
|
mountPath: /content
|
|
01-permissions:
|
|
mountPath: /mnt/directories/content
|
|
{{- range $idx, $storage := .Values.kapowarrStorage.additionalStorages }}
|
|
{{ printf "kapowarr-%v" (int $idx) }}:
|
|
enabled: true
|
|
type: {{ $storage.type }}
|
|
datasetName: {{ $storage.datasetName | default "" }}
|
|
hostPath: {{ $storage.hostPath | default "" }}
|
|
targetSelector:
|
|
kapowarr:
|
|
kapowarr:
|
|
mountPath: {{ $storage.mountPath }}
|
|
01-permissions:
|
|
mountPath: /mnt/directories{{ $storage.mountPath }}
|
|
{{- end }}
|
|
{{- end -}}
|