helm collabora kubernetes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB

  1. {{- if .Values.ingress.enabled -}}
  2. {{- $fullName := include "collabora-online.fullname" . -}}
  3. {{- $svcPort := .Values.service.port -}}
  4. apiVersion: networking.k8s.io/v1
  5. kind: Ingress
  6. metadata:
  7. name: {{ $fullName }}
  8. labels:
  9. {{- include "collabora-online.labels" . | nindent 4 }}
  10. {{- with .Values.ingress.annotations }}
  11. annotations:
  12. {{- toYaml . | nindent 4 }}
  13. {{- end }}
  14. spec:
  15. {{- if .Values.ingress.className }}
  16. ingressClassName: {{ .Values.ingress.className }}
  17. {{- end }}
  18. {{- if .Values.ingress.tls }}
  19. tls:
  20. {{- range .Values.ingress.tls }}
  21. - hosts:
  22. {{- range .hosts }}
  23. - {{ . | quote }}
  24. {{- end }}
  25. secretName: {{ .secretName }}
  26. {{- end }}
  27. {{- end }}
  28. rules:
  29. {{- range .Values.ingress.hosts }}
  30. - host: {{ .host | quote }}
  31. http:
  32. paths:
  33. {{- range .paths }}
  34. - path: {{ .path }}
  35. pathType: {{ .pathType }}
  36. backend:
  37. service:
  38. name: {{ $fullName }}
  39. port:
  40. number: {{ $svcPort }}
  41. {{- end }}
  42. {{- end }}
  43. {{- end }}