mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
discovery/kubernetes/ingress: remove unnecessary check
Signed-off-by: Dmitry Bashkatov <dbashkatov@gmail.com>
This commit is contained in:
parent
e2baf89eac
commit
72327d98fb
|
@ -177,11 +177,9 @@ func (s *Ingress) buildIngress(ingress *v1beta1.Ingress) *targetgroup.Group {
|
||||||
tg.Labels = ingressLabels(ingress)
|
tg.Labels = ingressLabels(ingress)
|
||||||
|
|
||||||
tlsHosts := make(map[string]struct{})
|
tlsHosts := make(map[string]struct{})
|
||||||
if ingress.Spec.TLS != nil {
|
for _, tls := range ingress.Spec.TLS {
|
||||||
for _, tls := range ingress.Spec.TLS {
|
for _, host := range tls.Hosts {
|
||||||
for _, host := range tls.Hosts {
|
tlsHosts[host] = struct{}{}
|
||||||
tlsHosts[host] = struct{}{}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue