Fix error setting $service_name NGINX variable

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-05-11 15:30:53 -04:00
parent bef2efc4f3
commit 46cca5ad40
2 changed files with 101 additions and 0 deletions

View file

@ -871,6 +871,10 @@ func getIngressInformation(i, h, p interface{}) *ingressInformation {
continue
}
if hostname != rule.Host {
continue
}
for _, rPath := range rule.HTTP.Paths {
if path == rPath.Path {
info.Service = rPath.Backend.ServiceName