-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18808 from danwinship/egressip-fixes
Automatic merge from submit-queue (batch tested with PRs 18780, 18802, 18391, 18832, 18808). Multiple auto-egress-IP fixes OK, 3 "setup" commits followed by 2 commits with fixes: - the first and second commits only change `egressip_test.go`, so clearly don't break the actual functioning of auto-egress-IP - the third commit ("Have multiple egress IP ovscontroller methods rather than one confusing one") is small and fairly self-explanatory. - the fourth commit ("Fix egressip handling when a NetNamespace is updated") involves a small fix to `egressip.go` and then a larger update to `egressip_test.go` to show that the fix works. Specifically: if the `EgressIPs` field on a NetNamespace was changed while that egress IP was active, then we did not clean up all of the state associated with the old egress IP, because we were accidentally cleaning up the state associated with the *new* egress IP instead. - the last commit ("Rearrange egressip internals, add duplication tests") is very large and complicated and needs the most review, but in particular note that all of the existing tests still pass with the new code, and it adds two more tests (which don't pass with the old code). This fixes the problem that we were previously mostly doing the right thing when the user screwed up and added a duplicate EgressIP, but we weren't doing the right thing when they *removed* the duplicates, because we weren't keeping enough information about the global merged node/namespace EgressIP state. I think the end result is actually simpler than the old code. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1551028 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1547899 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1543786 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1520363 @openshift/sig-networking PTAL
- Loading branch information
Showing
3 changed files
with
485 additions
and
336 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
Oops, something went wrong.