From 96327b12cdfa2c59c2594b7e38f5f511d6dc492f Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Sat, 7 Mar 2020 23:06:03 -0300 Subject: [PATCH] Fix $service_name and $service_port variables values without host (#5226) --- internal/ingress/controller/template/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ingress/controller/template/template.go b/internal/ingress/controller/template/template.go index 1b16f1388..afe9fedeb 100644 --- a/internal/ingress/controller/template/template.go +++ b/internal/ingress/controller/template/template.go @@ -868,7 +868,7 @@ func getIngressInformation(i, h, p interface{}) *ingressInformation { continue } - if hostname != "" && hostname != rule.Host { + if hostname != "_" && rule.Host == "" { continue }