_persistence.tpl 767 B

1234567891011121314151617181920212223242526
  1. {{- define "syncthing.persistence" -}}
  2. persistence:
  3. config:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.syncthingStorage.config) | nindent 4 }}
  6. targetSelector:
  7. syncthing:
  8. syncthing:
  9. mountPath: /var/syncthing
  10. tmp:
  11. enabled: true
  12. type: emptyDir
  13. targetSelector:
  14. syncthing:
  15. syncthing:
  16. mountPath: /tmp
  17. {{- range $idx, $storage := .Values.syncthingStorage.additionalStorages }}
  18. {{ printf "syncthing-%v:" (int $idx) }}
  19. enabled: true
  20. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  21. targetSelector:
  22. syncthing:
  23. syncthing:
  24. mountPath: {{ $storage.mountPath }}
  25. {{- end }}
  26. {{- end -}}