_persistence.tpl 948 B

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