_persistence.tpl 1.5 KB

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