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.

45 lines
1.2 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. {{- if .Values.ingress.enabled -}}
  2. {{- $ingressPath := include "pathBase" . -}}
  3. apiVersion: extensions/v1beta1
  4. kind: Ingress
  5. metadata:
  6. name: {{ template "webhooks-web.fullname" . }}
  7. labels:
  8. app: {{ template "webhooks-web.name" . }}
  9. chart: {{ template "webhooks-web.chart" . }}
  10. release: {{ .Release.Name }}
  11. heritage: {{ .Release.Service }}
  12. {{- with .Values.ingress.annotations }}
  13. annotations:
  14. {{ toYaml . | indent 4 }}
  15. {{- end }}
  16. {{- if and .Values.inf.tls.enabled .Values.inf.tls.issuer }}
  17. cert-manager.io/issuer: {{ .Values.inf.tls.issuer }}
  18. {{- end }}
  19. {{- if .Values.inf.mesh.enabled }}
  20. {{- with .Values.ingress.mesh.annotations }}
  21. {{ toYaml . | indent 4 }}
  22. {{- end }}
  23. {{- end }}
  24. spec:
  25. {{- if .Values.ingress.tls }}
  26. tls:
  27. {{- range .Values.ingress.tls }}
  28. - hosts:
  29. {{- range .hosts }}
  30. - {{ . }}
  31. {{- end }}
  32. secretName: {{ .secretName }}
  33. {{- end }}
  34. {{- end }}
  35. rules:
  36. {{- range .Values.ingress.hosts }}
  37. - host: {{ . }}
  38. http:
  39. paths:
  40. - path: {{ $ingressPath }}
  41. backend:
  42. serviceName: {{ $.Values.app.svc.webhooksweb }}
  43. servicePort: http
  44. {{- end }}
  45. {{- end }}