_persistence.tpl 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {{- define "roundcube.persistence" -}}
  2. persistence:
  3. html:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.roundcubeStorage.html) | nindent 4 }}
  6. targetSelector:
  7. roundcube:
  8. roundcube:
  9. mountPath: /var/www/html
  10. config:
  11. enabled: true
  12. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.roundcubeStorage.config) | nindent 4 }}
  13. targetSelector:
  14. roundcube:
  15. roundcube:
  16. mountPath: /var/roundcube/config
  17. temps:
  18. enabled: true
  19. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.roundcubeStorage.temps) | nindent 4 }}
  20. targetSelector:
  21. roundcube:
  22. roundcube:
  23. mountPath: /tmp/roundcube-temp
  24. tmp:
  25. enabled: true
  26. type: emptyDir
  27. targetSelector:
  28. roundcube:
  29. roundcube:
  30. mountPath: /tmp
  31. {{- range $idx, $storage := .Values.roundcubeStorage.additionalStorages }}
  32. {{ printf "roundcube-%v:" (int $idx) }}
  33. enabled: true
  34. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  35. targetSelector:
  36. roundcube:
  37. roundcube:
  38. mountPath: {{ $storage.mountPath }}
  39. {{- end }}
  40. {{- include "ix.v1.common.app.postgresPersistence"
  41. (dict "pgData" .Values.roundcubeStorage.pgData
  42. "pgBackup" .Values.roundcubeStorage.pgBackup
  43. ) | nindent 2 }}
  44. {{- end -}}