-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Restore node IP behavior of Cilium < 1.7 #11057
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
6933a66
to
1167f64
Compare
1167f64
to
94183a4
Compare
test-me-please |
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.
I pondered for a bit whether users who unintentionally picked up this behaviour in v1.7.2 (and populated local ipcaches) would require any additional manual intervention to ensure that the entries are cleaned up during upgrade. My conclusion was that this is not necessary since we will recreate the ipcache map during startup, and the new logic will kick in at that point. 👍
Minor nit below.
94183a4
to
5a0be55
Compare
test-me-please |
Commit bbfabcf added all IPs of a node to the ipcache to unify the behavior of the identity representing a node. While the fix is correct, it results in unexpected behavior change for some users. Revert the behavior and only do so if remote-node identities are enabled which is the new opt-in behavior starting with Cilium 1.7. Fixes: bbfabcf ("node: Assign remote node identity to all node IPs") Signed-off-by: Thomas Graf <thomas@cilium.io>
…added Even though some IPs have been excluded from being added to the ipcache. The same IPs have not been excluded when deleting thus resulting in an attempt to remove IPs in the ipcache which clearly were not owned by the node resource. Signed-off-by: Thomas Graf <thomas@cilium.io>
The IPs were added but never deleted Signed-off-by: Thomas Graf <thomas@cilium.io>
5a0be55
to
bc33662
Compare
test-me-please |
This restores the exact node IP behavior unless remote-node identities are enabled. It also fixes two bugs in separate commits that have been discovered by the unit tests added as part of this work.