Files
charts/library/ix-dev/community/tautulli/templates/_persistence.tpl
T
Stavros Kois 65119bdd9f NAS-122708 / 23.10 / Add tautulli to community train (#1315)
* initial commit

* add tpls

* add values

* add UI

* remove unrelated var
2023-07-03 14:51:58 +03:00

35 lines
1.0 KiB
Smarty

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