mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
Kubernetes SD: Fix golint issue
Signed-off-by: Takashi Kusumi <tkusumi@zlab.co.jp>
This commit is contained in:
parent
40981c422b
commit
3ab8559d1c
|
@ -52,9 +52,7 @@ func (i *ingressAdaptorV1) ingressClassName() *string { return i.ingress.Sp
|
||||||
func (i *ingressAdaptorV1) tlsHosts() []string {
|
func (i *ingressAdaptorV1) tlsHosts() []string {
|
||||||
var hosts []string
|
var hosts []string
|
||||||
for _, tls := range i.ingress.Spec.TLS {
|
for _, tls := range i.ingress.Spec.TLS {
|
||||||
for _, host := range tls.Hosts {
|
hosts = append(hosts, tls.Hosts...)
|
||||||
hosts = append(hosts, host)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return hosts
|
return hosts
|
||||||
}
|
}
|
||||||
|
@ -107,9 +105,7 @@ func (i *ingressAdaptorV1Beta1) ingressClassName() *string { return i.ingre
|
||||||
func (i *ingressAdaptorV1Beta1) tlsHosts() []string {
|
func (i *ingressAdaptorV1Beta1) tlsHosts() []string {
|
||||||
var hosts []string
|
var hosts []string
|
||||||
for _, tls := range i.ingress.Spec.TLS {
|
for _, tls := range i.ingress.Spec.TLS {
|
||||||
for _, host := range tls.Hosts {
|
hosts = append(hosts, tls.Hosts...)
|
||||||
hosts = append(hosts, host)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return hosts
|
return hosts
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue