Fix nginx ingress variables for definitions without hosts

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-12-02 10:48:39 -03:00
parent 81bf8056da
commit 5df2951948
2 changed files with 58 additions and 1 deletions

View file

@ -880,7 +880,12 @@ func getIngressInformation(i, h, p interface{}) *ingressInformation {
continue
}
if hostname != rule.Host {
host := "_"
if rule.Host != "" {
host = rule.Host
}
if hostname != host {
continue
}