_persistance.tpl 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. {{- if .Values.collaboraNetwork.certificateID }}
  14. nginx-conf:
  15. enabled: true
  16. type: configmap
  17. objectName: nginx-conf
  18. defaultMode: "0600"
  19. targetSelector:
  20. nginx:
  21. nginx:
  22. mountPath: /etc/nginx/nginx.conf
  23. subPath: nginx.conf
  24. readOnly: true
  25. cert:
  26. enabled: true
  27. type: secret
  28. objectName: collabora-cert
  29. defaultMode: "0600"
  30. items:
  31. - key: tls.key
  32. path: server.key
  33. - key: tls.crt
  34. path: server.crt
  35. targetSelector:
  36. nginx:
  37. nginx:
  38. mountPath: /etc/certs
  39. readOnly: true
  40. {{- end }}
  41. {{- range $idx, $storage := .Values.collaboraStorage.additionalStorages }}
  42. {{ printf "collabora-%v:" (int $idx) }}
  43. enabled: true
  44. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  45. targetSelector:
  46. collabora:
  47. collabora:
  48. mountPath: {{ $storage.mountPath }}
  49. {{- end }}
  50. {{- end -}}