make host optional in ingress settings

This commit is contained in:
2025-10-22 14:31:27 -05:00
parent 000c6cf419
commit d84d5b683c

View File

@@ -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 }}