Skip to content

Commit

Permalink
Update pkg/agent/endpoints/sdsv3/handler.go
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Harding <azdagron@gmail.com>
Signed-off-by: grameshtwilio <gramesh@twilio.com>
  • Loading branch information
grameshtwilio and azdagron committed Oct 26, 2023
1 parent 12d9a73 commit 2a93f64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/agent/endpoints/sdsv3/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ func (h *Handler) StreamSecrets(stream secret_v3.SecretDiscoveryService_StreamSe
telemetry.Expect: versionInfo,
}).Error("Client rejected expected version and rolled back")
}
// If Envoy doesn't return Node, use the Node from a previous stream
if newReq.Node == nil && lastNode != nil {
// If the current request does not contain node information, use the information from a previous request (if any)
if newReq.Node == nil {
newReq.Node = lastNode
}
}
Expand Down

0 comments on commit 2a93f64

Please sign in to comment.