-
Notifications
You must be signed in to change notification settings - Fork 889
chore: add support for peer updates to tailnet.configMaps #11487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
032d52d
to
b03a760
Compare
d744013
to
76ec6f7
Compare
b03a760
to
6f37b9b
Compare
76ec6f7
to
2baf90f
Compare
2baf90f
to
3844f8a
Compare
6f37b9b
to
0ec3722
Compare
3844f8a
to
e01bbcf
Compare
d013264
to
018e3b8
Compare
e01bbcf
to
a02de8b
Compare
40c72c2
to
3b8d264
Compare
var lastHandshake time.Time | ||
if ps, ok := status.Peer[node.Key]; ok { | ||
lastHandshake = ps.LastHandshake | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a situation a peer would be missing from the configMaps
peer list but still be in the engine's peer list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, immediately after receiving a DISCONNECTED update, we remove it from configMaps. Then until the next update it'll be in the engine but not configMaps. Probably an edge case for us to DISCONNECT and then immediately get a new NODE update, though.
tailnet/configmaps_internal_test.go
Outdated
// Then: we don't configure | ||
requireNeverConfigures(ctx, t, uut) | ||
|
||
p1ID := uuid.MustParse("10000000-0000-0000-0000-000000000000") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nice shorthand for this is uuid.UUID{1}
3b8d264
to
b573a10
Compare
Merge activity
|
Adds support to configMaps to handle peer updates including lost and disconnected peers