mirror of
https://github.com/truenas/charts.git
synced 2026-04-23 18:10:06 +08:00
* update templates * fix names * update ui * add group * add migration * wrong dir * fix typo * rename * add hostnet test
27 lines
767 B
Smarty
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 -}}
|