Merge pull request #8470 from liguozhong/service_discovery_k8s

[fix] service discovery : change var "eps" to "pod
This commit is contained in:
Frederic Branczyk 2021-02-15 14:58:15 +01:00 committed by GitHub
commit 8b215fe907
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,12 +124,12 @@ func (p *Pod) process(ctx context.Context, ch chan<- []*targetgroup.Group) bool
send(ctx, ch, &targetgroup.Group{Source: podSourceFromNamespaceAndName(namespace, name)})
return true
}
eps, err := convertToPod(o)
pod, err := convertToPod(o)
if err != nil {
level.Error(p.logger).Log("msg", "converting to Pod object failed", "err", err)
return true
}
send(ctx, ch, p.buildPod(eps))
send(ctx, ch, p.buildPod(pod))
return true
}