mirror of https://github.com/linkerd/linkerd2.git
Empty the stored addresses when the endpoint translator gets a NoEndpoints message (#5126)
Signed-off-by: Alex Leong <alex@buoyant.io>
This commit is contained in:
parent
460920633d
commit
4f34ce8e2f
|
@ -184,6 +184,9 @@ func (et *endpointTranslator) diffEndpoints(filtered watcher.AddressSet) (watche
|
|||
func (et *endpointTranslator) NoEndpoints(exists bool) {
|
||||
et.log.Debugf("NoEndpoints(%+v)", exists)
|
||||
|
||||
et.availableEndpoints.Addresses = map[watcher.ID]watcher.Address{}
|
||||
et.filteredSnapshot.Addresses = map[watcher.ID]watcher.Address{}
|
||||
|
||||
u := &pb.Update{
|
||||
Update: &pb.Update_NoEndpoints{
|
||||
NoEndpoints: &pb.NoEndpoints{
|
||||
|
|
Loading…
Reference in New Issue