_persistence.tpl 933 B

1234567891011121314151617181920212223242526272829303132
  1. {{- define "dashy.persistence" -}}
  2. persistence:
  3. config:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.dashyStorage.config) | nindent 4 }}
  6. targetSelector:
  7. dashy:
  8. dashy:
  9. mountPath: /app/public
  10. # Mount the same dir to different path on init container
  11. # So we can check if `/data` is empty and copy the default
  12. # from /app/public
  13. init-config:
  14. mountPath: /data
  15. tmp:
  16. enabled: true
  17. type: emptyDir
  18. targetSelector:
  19. dashy:
  20. dashy:
  21. mountPath: /tmp
  22. {{- range $idx, $storage := .Values.dashyStorage.additionalStorages }}
  23. {{ printf "dashy-%v" (int $idx) }}:
  24. enabled: true
  25. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  26. targetSelector:
  27. dashy:
  28. dashy:
  29. mountPath: {{ $storage.mountPath }}
  30. {{- end -}}
  31. {{- end -}}