_persistence.tpl 1023 B

1234567891011121314151617181920212223242526272829303132333435
  1. {{- define "firefly.persistence" -}}
  2. persistence:
  3. uploads:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.fireflyStorage.uploads) | nindent 4 }}
  6. targetSelector:
  7. firefly:
  8. firefly:
  9. mountPath: /var/www/html/storage/upload
  10. tmp:
  11. enabled: true
  12. type: emptyDir
  13. targetSelector:
  14. firefly:
  15. firefly:
  16. mountPath: /tmp
  17. firefly-importer:
  18. firefly-importer:
  19. mountPath: /tmp
  20. {{- range $idx, $storage := .Values.fireflyStorage.additionalStorages }}
  21. {{ printf "firefly-%v:" (int $idx) }}
  22. enabled: true
  23. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  24. targetSelector:
  25. firefly:
  26. firefly:
  27. mountPath: {{ $storage.mountPath }}
  28. {{- end }}
  29. {{- include "ix.v1.common.app.postgresPersistence"
  30. (dict "pgData" .Values.fireflyStorage.pgData
  31. "pgBackup" .Values.fireflyStorage.pgBackup
  32. ) | nindent 2 }}
  33. {{- end -}}