_persistence.tpl 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {{- define "passbolt.persistence" -}}
  2. persistence:
  3. gpg:
  4. enabled: true
  5. type: {{ .Values.passboltStorage.gpg.type }}
  6. datasetName: {{ .Values.passboltStorage.gpg.datasetName | default "" }}
  7. hostPath: {{ .Values.passboltStorage.gpg.hostPath | default "" }}
  8. targetSelector:
  9. passbolt:
  10. passbolt:
  11. mountPath: /etc/passbolt/gpg
  12. 01-permissions:
  13. mountPath: /mnt/directories/gpg
  14. jwt:
  15. enabled: true
  16. type: {{ .Values.passboltStorage.jwt.type }}
  17. datasetName: {{ .Values.passboltStorage.jwt.datasetName | default "" }}
  18. hostPath: {{ .Values.passboltStorage.jwt.hostPath | default "" }}
  19. targetSelector:
  20. passbolt:
  21. passbolt:
  22. mountPath: /etc/passbolt/jwt
  23. 01-permissions:
  24. mountPath: /mnt/directories/jwt
  25. tmp:
  26. enabled: true
  27. type: emptyDir
  28. targetSelector:
  29. passbolt:
  30. passbolt:
  31. mountPath: /tmp
  32. varrun:
  33. enabled: true
  34. type: emptyDir
  35. targetSelector:
  36. passbolt:
  37. passbolt:
  38. mountPath: /var/run
  39. {{- range $idx, $storage := .Values.passboltStorage.additionalStorages }}
  40. {{ printf "passbolt-%v" (int $idx) }}:
  41. enabled: true
  42. type: {{ $storage.type }}
  43. datasetName: {{ $storage.datasetName | default "" }}
  44. hostPath: {{ $storage.hostPath | default "" }}
  45. targetSelector:
  46. passbolt:
  47. passbolt:
  48. mountPath: {{ $storage.mountPath }}
  49. 01-permissions:
  50. mountPath: /mnt/directories{{ $storage.mountPath }}
  51. {{- end }}
  52. mariadbdata:
  53. enabled: true
  54. type: {{ .Values.passboltStorage.mariadbData.type }}
  55. datasetName: {{ .Values.passboltStorage.mariadbData.datasetName | default "" }}
  56. hostPath: {{ .Values.passboltStorage.mariadbData.hostPath | default "" }}
  57. targetSelector:
  58. # MariaDB pod
  59. mariadb:
  60. # MariaDB container
  61. mariadb:
  62. mountPath: /var/lib/mysql
  63. # MariaDB - Permissions container
  64. permissions:
  65. mountPath: /mnt/directories/mariadb_data
  66. mariadbbackup:
  67. enabled: true
  68. type: {{ .Values.passboltStorage.mariadbBackup.type }}
  69. datasetName: {{ .Values.passboltStorage.mariadbBackup.datasetName | default "" }}
  70. hostPath: {{ .Values.passboltStorage.mariadbBackup.hostPath | default "" }}
  71. targetSelector:
  72. # MariaDB backup pod
  73. mariadbbackup:
  74. # MariaDB backup container
  75. mariadbbackup:
  76. mountPath: /mariadb_backup
  77. # MariaDB - Permissions container
  78. permissions:
  79. mountPath: /mnt/directories/mariadb_backup
  80. {{- if .Values.passboltNetwork.certificateID }}
  81. cert:
  82. enabled: true
  83. type: secret
  84. objectName: passbolt-cert
  85. defaultMode: "0600"
  86. items:
  87. - key: tls.key
  88. path: certificate.key
  89. - key: tls.crt
  90. path: certificate.crt
  91. targetSelector:
  92. passbolt:
  93. passbolt:
  94. mountPath: /etc/passbolt/certs
  95. readOnly: true
  96. scaleCertificate:
  97. passbolt-cert:
  98. enabled: true
  99. id: {{ .Values.passboltNetwork.certificateID }}
  100. {{- end -}}
  101. {{- end -}}