discovery/kubernetes/ingress: remove unnecessary check

Signed-off-by: Dmitry Bashkatov <dbashkatov@gmail.com>
This commit is contained in:
Dmitry Bashkatov 2018-07-04 15:46:48 +03:00
parent e2baf89eac
commit 72327d98fb
1 changed files with 3 additions and 5 deletions

View File

@ -177,11 +177,9 @@ func (s *Ingress) buildIngress(ingress *v1beta1.Ingress) *targetgroup.Group {
tg.Labels = ingressLabels(ingress)
tlsHosts := make(map[string]struct{})
if ingress.Spec.TLS != nil {
for _, tls := range ingress.Spec.TLS {
for _, host := range tls.Hosts {
tlsHosts[host] = struct{}{}
}
for _, tls := range ingress.Spec.TLS {
for _, host := range tls.Hosts {
tlsHosts[host] = struct{}{}
}
}