Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
node/manager: Utilize set.SliceSubsetOf in ipcache deletion
This cleans up the code to have proper diffing logic when delete node IPs from the ipcache. Previously, the logic had a potential for a bug because it assumed that oldIPs and newIPs were sorted. FWIW, no bug has been reported in regards to the previous code fixed by this commit, so it's theoretical for now. In the end, this is a defensive change to prevent it from happening. Additionally, this commit will ease the changes that will be introduced in #23208. Signed-off-by: Chris Tarazi <chris@isovalent.com>
- Loading branch information
1 parent
d522562
commit 47fcc78
Showing
1 changed file
with
13 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters