-
Notifications
You must be signed in to change notification settings - Fork 166
DNM testing #2802
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
base: release-4.18
Are you sure you want to change the base?
DNM testing #2802
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: cgoncalves The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
a00ccf6 to
22d5857
Compare
EgressIPs were incorrectly added to the br-ex network interface immediately upon EgressIP CR creation, without checking for matching pods or using longest prefix matching (LPM) for interface selection. This caused duplicate IP assignments when the correct secondary host interface was later assigned. Changes: - Add pod existence validation before IP assignment in bridgeEIPAddrManager - Implement longest prefix matching to determine correct network interface - Add dynamic pod event handling to re-evaluate EgressIPs on pod lifecycle - Extend retry framework to watch pod events for EgressIP reconciliation - Add comprehensive unit tests covering edge cases and pod matching logic The fix ensures EgressIPs are only assigned when: 1. Matching pods exist and are running 2. The target interface is determined via LPM algorithm 3. No duplicate IPs are assigned across multiple interfaces Files modified: - gateway_egressip.go: Core logic for pod checking and LPM interface selection - gateway.go: Pod event handling and retry framework integration - gateway_shared_intf.go: Bridge manager initialization with pod informers - obj_retry_gateway.go: Pod resource handling in retry framework - gateway_egressip_test.go: Comprehensive test coverage for new functionality Fixes duplicate EgressIP assignment bug where IPs appeared on both br-ex and the correct secondary interface simultaneously.
22d5857 to
58e5fa3
Compare
|
@cgoncalves: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
No description provided.