Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Made changed to ingress controller so that it can take in multiple hosts #135

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions charts/lenses/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,23 @@ metadata:
{{- end }}
spec:
rules:
- host: {{ .Values.ingress.host }}
http:
paths:
- path: {{if .Values.ingress.path }}{{ .Values.ingress.path }}{{else}}"/"{{end}}
backend:
serviceName: {{ include "fullname" . | quote }}
servicePort: {{ .Values.servicePort }}
- host: {{ .Values.ingress.host }}
http:
paths:
- path: {{if .Values.ingress.path }}{{ .Values.ingress.path }}{{else}}"/"{{end}}
backend:
serviceName: {{ include "fullname" . | quote }}
servicePort: {{ .Values.servicePort }}
{{- range .Values.ingress.additionalHosts }}
- host: {{ . }}
http:
paths:
- path: {{if $.Values.ingress.path }}{{ $.Values.ingress.path }}{{else}}"/"{{end}}
backend:
serviceName: {{ include "fullname" $ | quote }}
servicePort: {{ $.Values.servicePort }}
{{- end}}

{{- if .Values.ingress.tls.enabled }}
tls:
- hosts:
Expand All @@ -34,4 +44,4 @@ spec:
secretName: {{ include "fullname" . | quote }}
{{- end }}
{{- end -}}
{{- end -}}
{{- end -}}
1 change: 1 addition & 0 deletions charts/lenses/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ ingress:
##
enabled: false
host:
additionalHosts:

# Ingress annotations
annotations:
Expand Down