diff --git a/helm-charts/stage/templates/ingress.yaml b/helm-charts/stage/templates/ingress.yaml index 6703999..4bc7459 100644 --- a/helm-charts/stage/templates/ingress.yaml +++ b/helm-charts/stage/templates/ingress.yaml @@ -25,8 +25,7 @@ spec: {{- end }} rules: {{- range .Values.ingress.hosts }} - - host: {{ .host | quote }} - http: + - http: paths: {{- range .paths }} - path: {{ .path }} @@ -39,5 +38,8 @@ spec: port: number: {{ $.Values.service.port }} {{- end }} + {{- if .host }} + host: {{ .host | quote }} + {{- end }} {{- end }} {{- end }}