-
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
Remove flag sort-backends #3655
Conversation
What is the actual cause of endpoints changing their order? If that cause still exists without sorting the upstreams we will now POST the payload to Lua endpoint unnecessarily, while this is better than reload it is still not good. Again if the actual cause (I don't know what it is) still exists I'd just remove the flag and always sort. |
The iteration in the go template
That will not happen because to trigger a reload we check the equality of the configuration, thing that doesn't need the list to be ordered. |
Also, the default value is false, so no change in the default behavior ;) |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, ElvinEfendi 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 |
@@ -163,6 +160,8 @@ Feature backed by OpenResty Lua libraries. Requires that OCSP stapling is not en | |||
`Disable support for catch-all Ingresses`) | |||
) | |||
|
|||
flags.MarkDeprecated("sort-backends", "Feature removed because of the lua load balancer that removed the need of reloads for change in endpoints") |
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.
you are already deleting it, why mark it as deprecated now?
deprecated tells me it is still there and working just deprecated i.e will be dropped in next release
The `sort-backends` flag has been dropped from ingress-nginx in v0.22.0 * https://github.com/kubernetes/ingress-nginx/blob/master/Changelog.md * kubernetes/ingress-nginx#3655 Signed-off-by: Sameer Naik <sameer@bitnami.com>
What this PR does / why we need it:
The flag sort-backends was required to avoid reloads because of the change in the order of the upstream servers in the generated nginx.conf file. This is not an issue anymore since the use of lua.