Browse Source

[fix] service discovery : change var "eps" to "pod

Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
pull/8470/head
fuling 4 years ago
parent
commit
829b939891
  1. 4
      discovery/kubernetes/pod.go

4
discovery/kubernetes/pod.go

@ -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
}

Loading…
Cancel
Save