_persistence.tpl 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {{- define "diskover.persistence" -}}
  2. persistence:
  3. config:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.diskoverStorage.config) | nindent 4 }}
  6. targetSelector:
  7. diskover:
  8. diskover:
  9. mountPath: /config
  10. data:
  11. enabled: true
  12. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.diskoverStorage.data) | nindent 4 }}
  13. targetSelector:
  14. diskover:
  15. diskover:
  16. mountPath: /data
  17. esdata:
  18. enabled: true
  19. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.diskoverStorage.esdata) | nindent 4 }}
  20. targetSelector:
  21. elasticsearch:
  22. elasticsearch:
  23. mountPath: /usr/share/elasticsearch/data
  24. {{- if and (eq .Values.diskoverStorage.esdata.type "ixVolume")
  25. (not (.Values.diskoverStorage.esdata.ixVolumeConfig | default dict).aclEnable) }}
  26. 01-permissions:
  27. mountPath: /mnt/directories/esdata
  28. {{- end }}
  29. defaultcrawler:
  30. enabled: true
  31. type: configmap
  32. objectName: diskover-config
  33. defaultMode: "0755"
  34. targetSelector:
  35. diskover:
  36. diskover:
  37. mountPath: /scripts/default_crawler.sh
  38. subPath: .default_crawler.sh
  39. phpfile:
  40. enabled: true
  41. type: configmap
  42. objectName: diskover-config
  43. targetSelector:
  44. diskover:
  45. diskover:
  46. mountPath: /config/diskover-web.conf.d/Constants.php
  47. subPath: Constants.php
  48. yamlfile:
  49. enabled: true
  50. type: configmap
  51. objectName: diskover-config
  52. targetSelector:
  53. diskover:
  54. diskover:
  55. mountPath: /config/diskover.conf.d/diskover/config.yaml
  56. subPath: config.yaml
  57. tmp:
  58. enabled: true
  59. type: emptyDir
  60. targetSelector:
  61. diskover:
  62. 01-wait-for-elasticsearch:
  63. mountPath: /tmp
  64. {{- range $idx, $storage := .Values.diskoverStorage.additionalStorages }}
  65. {{ printf "diskover-%v:" (int $idx) }}
  66. enabled: true
  67. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  68. targetSelector:
  69. diskover:
  70. diskover:
  71. mountPath: {{ $storage.mountPath }}
  72. {{- end }}
  73. {{- end -}}