-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
fix: Sort TCP/UDP upstream order #2885
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2885 +/- ##
==========================================
- Coverage 47.56% 47.52% -0.05%
==========================================
Files 76 76
Lines 5483 5486 +3
==========================================
- Hits 2608 2607 -1
- Misses 2540 2545 +5
+ Partials 335 334 -1
Continue to review full report at Codecov.
|
/assign @caseydavenport |
@mikebryant please don't assign PRs manually |
@mikebryant this only sort by port number. You should use something like https://github.com/ocadotechnology/ingress-nginx/blob/8067e0bcc3c9df090530bdc113650fceb8e86bca/internal/ingress/controller/controller.go#L806 |
@aledbf Apologies, I was trying to follow the instructions given by @k8s-ci-robot |
@aledbf I don't understand - the |
@mikebryant you need to sort using both fields, Address and Port |
I don't see where there's an Address field on an |
@aledbf Am I right in thinking you're talking about an Endpoint object? I'm not trying to sort those, I'm trying to sort the upstream definitions themselves, i.e. the order of the |
Is there anything I need to be doing to help get this merged? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, mikebryant The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@mikebryant thanks! |
What this PR does / why we need it: Sorts the TCP/UDP upstream order, to reduce unnecessary config reloads
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #2721