Browse Source

Wait for all internal discoveries are done before exiting. (#4508)

Signed-off-by: Yecheng Fu <cofyc.jackson@gmail.com>
pull/4523/head
Yecheng Fu 6 years ago committed by Goutham Veeramachaneni
parent
commit
d4eae8cc0c
  1. 2
      discovery/kubernetes/kubernetes.go

2
discovery/kubernetes/kubernetes.go

@ -370,6 +370,8 @@ func (d *Discovery) Run(ctx context.Context, ch chan<- []*targetgroup.Group) {
}
d.Unlock()
wg.Wait()
<-ctx.Done()
}

Loading…
Cancel
Save