fredthomsen commented on a change in pull request #18542:
URL: https://github.com/apache/airflow/pull/18542#discussion_r724711300
##########
File path: chart/templates/webserver/webserver-ingress.yaml
##########
@@ -99,8 +114,12 @@ spec:
servicePort: {{ .servicePort }}
{{- end }}
{{- end }}
- {{- if . }}
- host: {{ . | quote }}
+ {{- $hostname := . -}}
+ {{- if and $.Values.ingress.web.hosts ($.Values.ingress.web.hosts |
first | kindIs "string" | not) }}
+ {{- $hostname = .name -}}
+ {{- end }}
+ {{- if $hostname }}
+ host: {{ $hostname | quote }}
Review comment:
Uh yeah... what am I doing here? Must have copied this from above
without thinking this through.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]