Baphomet is the dedicated bot for nulloctet matrix
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.

41 lines
1.0 KiB

  1. {{- if .Values.ingress.enabled -}}
  2. {{- $fullName := include "baphomet-js.fullname" . -}}
  3. {{- $svcPort := .Values.service.port -}}
  4. {{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
  5. apiVersion: networking.k8s.io/v1beta1
  6. {{- else -}}
  7. apiVersion: extensions/v1beta1
  8. {{- end }}
  9. kind: Ingress
  10. metadata:
  11. name: {{ $fullName }}
  12. labels:
  13. {{ include "baphomet-js.labels" . | indent 4 }}
  14. {{- with .Values.ingress.annotations }}
  15. annotations:
  16. {{- toYaml . | nindent 4 }}
  17. {{- end }}
  18. spec:
  19. {{- if .Values.ingress.tls }}
  20. tls:
  21. {{- range .Values.ingress.tls }}
  22. - hosts:
  23. {{- range .hosts }}
  24. - {{ . | quote }}
  25. {{- end }}
  26. secretName: {{ .secretName }}
  27. {{- end }}
  28. {{- end }}
  29. rules:
  30. {{- range .Values.ingress.hosts }}
  31. - host: {{ .host | quote }}
  32. http:
  33. paths:
  34. {{- range .paths }}
  35. - path: {{ . }}
  36. backend:
  37. serviceName: {{ $fullName }}
  38. servicePort: {{ $svcPort }}
  39. {{- end }}
  40. {{- end }}
  41. {{- end }}