_persistance.tpl 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{- define "photoprism.persistence" -}}
  2. persistence:
  3. import:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.photoprismStorage.import) | nindent 4 }}
  6. targetSelector:
  7. photoprism:
  8. photoprism:
  9. mountPath: /photoprism/import
  10. storage:
  11. enabled: true
  12. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.photoprismStorage.storage) | nindent 4 }}
  13. targetSelector:
  14. photoprism:
  15. photoprism:
  16. mountPath: /photoprism/storage
  17. originals:
  18. enabled: true
  19. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.photoprismStorage.originals) | nindent 4 }}
  20. targetSelector:
  21. photoprism:
  22. photoprism:
  23. mountPath: /photoprism/originals
  24. tmp:
  25. enabled: true
  26. type: emptyDir
  27. targetSelector:
  28. photoprism:
  29. photoprism:
  30. mountPath: /tmp
  31. {{- range $idx, $storage := .Values.photoprismStorage.additionalStorages }}
  32. {{ printf "ha-%v:" (int $idx) }}
  33. enabled: true
  34. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  35. targetSelector:
  36. photoprism:
  37. photoprism:
  38. mountPath: {{ $storage.mountPath }}
  39. {{- end }}
  40. {{- end -}}