_persistence.tpl 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. defaultcrawler:
  25. enabled: true
  26. type: configmap
  27. objectName: diskover-config
  28. defaultMode: "0755"
  29. targetSelector:
  30. diskover:
  31. diskover:
  32. mountPath: /scripts/default_crawler.sh
  33. subPath: .default_crawler.sh
  34. phpfile:
  35. enabled: true
  36. type: configmap
  37. objectName: diskover-config
  38. targetSelector:
  39. diskover:
  40. diskover:
  41. mountPath: /config/diskover-web.conf.d/Constants.php
  42. subPath: Constants.php
  43. yamlfile:
  44. enabled: true
  45. type: configmap
  46. objectName: diskover-config
  47. targetSelector:
  48. diskover:
  49. diskover:
  50. mountPath: /config/diskover.conf.d/diskover/config.yaml
  51. subPath: config.yaml
  52. tmp:
  53. enabled: true
  54. type: emptyDir
  55. targetSelector:
  56. diskover:
  57. 01-wait-for-elasticsearch:
  58. mountPath: /tmp
  59. {{- range $idx, $storage := .Values.diskoverStorage.additionalStorages }}
  60. {{ printf "diskover-%v:" (int $idx) }}
  61. enabled: true
  62. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  63. targetSelector:
  64. diskover:
  65. diskover:
  66. mountPath: {{ $storage.mountPath }}
  67. {{- end }}
  68. {{- end -}}