_persistance.tpl 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {{- define "collabora.persistence" -}}
  2. persistence:
  3. tmp:
  4. enabled: true
  5. type: emptyDir
  6. targetSelector:
  7. collabora:
  8. collabora:
  9. mountPath: /tmp
  10. nginx:
  11. nginx:
  12. mountPath: /tmp
  13. varcache:
  14. enabled: true
  15. type: emptyDir
  16. targetSelector:
  17. nginx:
  18. nginx:
  19. mountPath: /var/cache/nginx
  20. {{- if .Values.collaboraNetwork.certificateID }}
  21. nginx-conf:
  22. enabled: true
  23. type: configmap
  24. objectName: nginx-conf
  25. defaultMode: "0600"
  26. targetSelector:
  27. nginx:
  28. nginx:
  29. mountPath: /etc/nginx/nginx.conf
  30. subPath: nginx.conf
  31. readOnly: true
  32. cert:
  33. enabled: true
  34. type: secret
  35. objectName: collabora-cert
  36. defaultMode: "0600"
  37. items:
  38. - key: tls.key
  39. path: server.key
  40. - key: tls.crt
  41. path: server.crt
  42. targetSelector:
  43. nginx:
  44. nginx:
  45. mountPath: /etc/certs
  46. readOnly: true
  47. {{- end }}
  48. {{- range $idx, $storage := .Values.collaboraStorage.additionalStorages }}
  49. {{ printf "collabora-%v:" (int $idx) }}
  50. enabled: true
  51. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  52. targetSelector:
  53. collabora:
  54. collabora:
  55. mountPath: {{ $storage.mountPath }}
  56. {{- end }}
  57. {{- end -}}