Skip to content
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

egressgw: policy: stop iterating through nodes after first match #24898

Merged
merged 1 commit into from Apr 16, 2023

Conversation

jibi
Copy link
Member

@jibi jibi commented Apr 14, 2023

in regenerateGatewayConfig(), once a node that matches the given policy is found, there's no need to keep iterating through the rest of the nodes, so let's just return to the caller

@jibi jibi added release-note/misc This PR makes changes that have no direct user impact. feature/egress-gateway Impacts the egress IP gateway feature. labels Apr 14, 2023
@jibi jibi requested a review from a team as a code owner April 14, 2023 12:46
in regenerateGatewayConfig(), once a node that matches the given policy
is found, there's no need to keep iterating through the rest of the
nodes, so let's just return to the caller

Suggested-by: Julian Wiedmann <jwi@isovalent.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
@jibi jibi force-pushed the pr/jibi/egressgw-improv-node-selection branch from 4d9bdb1 to d3030d3 Compare April 14, 2023 12:57
@jibi
Copy link
Member Author

jibi commented Apr 14, 2023

/test

@pchaigno pchaigno merged commit edbd28b into master Apr 16, 2023
57 checks passed
@pchaigno pchaigno deleted the pr/jibi/egressgw-improv-node-selection branch April 16, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/egress-gateway Impacts the egress IP gateway feature. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants