_persistence.tpl 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {{- define "storj.persistence" -}}
  2. persistence:
  3. data:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.storjStorage.data) | nindent 4 }}
  6. targetSelector:
  7. storj:
  8. storj:
  9. mountPath: /app/config
  10. {{- if and (eq .Values.storjStorage.data.type "ixVolume")
  11. (not (.Values.storjStorage.data.ixVolumeConfig | default dict).aclEnable) }}
  12. 01-permissions:
  13. mountPath: /mnt/directories/data
  14. {{- end }}
  15. 03-setup:
  16. mountPath: /app/config
  17. identity:
  18. enabled: true
  19. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.storjStorage.identity) | nindent 4 }}
  20. targetSelector:
  21. storj:
  22. storj:
  23. mountPath: /app/identity
  24. {{- if and (eq .Values.storjStorage.identity.type "ixVolume")
  25. (not (.Values.storjStorage.identity.ixVolumeConfig | default dict).aclEnable) }}
  26. 01-permissions:
  27. mountPath: /mnt/directories/identity
  28. {{- end }}
  29. 02-generateid:
  30. mountPath: {{ template "storj.idPath" }}
  31. 03-setup:
  32. mountPath: /app/identity
  33. initscript:
  34. enabled: true
  35. type: configmap
  36. objectName: storj
  37. defaultMode: "0755"
  38. targetSelector:
  39. storj:
  40. 02-generateid:
  41. mountPath: /init_script/init_config.sh
  42. subPath: init_config.sh
  43. tmp:
  44. enabled: true
  45. type: emptyDir
  46. targetSelector:
  47. storj:
  48. storj:
  49. mountPath: /tmp
  50. 02-generateid:
  51. mountPath: /tmp
  52. 03-setup:
  53. mountPath: /tmp
  54. {{- range $idx, $storage := .Values.storjStorage.additionalStorages }}
  55. {{ printf "storj-%v:" (int $idx) }}
  56. enabled: true
  57. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  58. targetSelector:
  59. storj:
  60. storj:
  61. mountPath: {{ $storage.mountPath }}
  62. {{- end }}
  63. {{- end -}}