Files
chart/library/ix-dev/charts/syncthing/templates/_persistence.tpl
Stavros Kois 1a797b4b70 syncthing - migrate library (#2181)
* update templates

* fix names

* update ui

* add group

* add migration

* wrong dir

* fix typo

* rename

* add hostnet test
2024-02-20 12:01:40 +02:00

27 lines
767 B
Smarty

{{- define "syncthing.persistence" -}}
persistence:
config:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.syncthingStorage.config) | nindent 4 }}
targetSelector:
syncthing:
syncthing:
mountPath: /var/syncthing
tmp:
enabled: true
type: emptyDir
targetSelector:
syncthing:
syncthing:
mountPath: /tmp
{{- range $idx, $storage := .Values.syncthingStorage.additionalStorages }}
{{ printf "syncthing-%v:" (int $idx) }}
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
targetSelector:
syncthing:
syncthing:
mountPath: {{ $storage.mountPath }}
{{- end }}
{{- end -}}