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 }} {{- end }}
rules: rules:
{{- range .Values.ingress.hosts }} {{- range .Values.ingress.hosts }}
- host: {{ .host | quote }} - http:
http:
paths: paths:
{{- range .paths }} {{- range .paths }}
- path: {{ .path }} - path: {{ .path }}
@@ -39,5 +38,8 @@ spec:
port: port:
number: {{ $.Values.service.port }} number: {{ $.Values.service.port }}
{{- end }} {{- end }}
{{- if .host }}
host: {{ .host | quote }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}