Fix nilpointer in admission and remove failing test (#7255)

* Fix nilpointer in admission when it was unable to validate default backend ingress

Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>

* Remove temporarily the slow shutdown tests

Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>
This commit is contained in:
Ricardo Katz 2021-06-21 16:32:51 -03:00 committed by GitHub
parent 2a190d2657
commit 39ace3176b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 10 deletions

View file

@ -1654,6 +1654,10 @@ func ingressForHostPath(hostname, path string, servers []*ingress.Server) []*net
continue
}
if location.IsDefBackend {
continue
}
ingresses = append(ingresses, &location.Ingress.Ingress)
}
}