diff --git a/charts/lenses/templates/ingress.yaml b/charts/lenses/templates/ingress.yaml index 97e78ff..4ff77ec 100644 --- a/charts/lenses/templates/ingress.yaml +++ b/charts/lenses/templates/ingress.yaml @@ -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: @@ -34,4 +44,4 @@ spec: secretName: {{ include "fullname" . | quote }} {{- end }} {{- end -}} -{{- end -}} +{{- end -}} \ No newline at end of file diff --git a/charts/lenses/values.yaml b/charts/lenses/values.yaml index e35253d..7f323b8 100644 --- a/charts/lenses/values.yaml +++ b/charts/lenses/values.yaml @@ -80,6 +80,7 @@ ingress: ## enabled: false host: + additionalHosts: # Ingress annotations annotations: