Fixed node nil labels map with aws-sd registry

This commit is contained in:
Artem Voronin 2021-06-02 18:47:20 +03:00
parent 0b370ac6ba
commit ea9158cbf2

View File

@ -151,6 +151,7 @@ func (ns *nodeSource) Endpoints(ctx context.Context) ([]*endpoint.Endpoint, erro
}
ep.Targets = endpoint.Targets(addrs)
ep.Labels = endpoint.NewLabels()
log.Debugf("adding endpoint %s", ep)
if _, ok := endpoints[ep.DNSName]; ok {