-
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
Always sort upstream list to provide stable iteration order #2598
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2598 +/- ##
==========================================
+ Coverage 40.54% 40.58% +0.04%
==========================================
Files 75 75
Lines 5106 5098 -8
==========================================
- Hits 2070 2069 -1
+ Misses 2755 2750 -5
+ Partials 281 279 -2
Continue to review full report at Codecov.
|
@@ -572,12 +572,6 @@ func (n *NGINXController) getBackendServers(ingresses []*extensions.Ingress) ([] | |||
aUpstreams = append(aUpstreams, upstream) | |||
} | |||
|
|||
if n.cfg.SortBackends { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make the corresponding flag dummy and print a deprecation message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scratch the deprecation part, I forgot that the flag also influenced the order of endpoints.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, antoineco 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 |
What this PR does / why we need it:
Using a sorted list avoids unnecessary reloads
Which issue this PR fixes: fixes #2596