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

Add --sort-endpoints-by command-line option #678

Merged
merged 1 commit into from
Oct 17, 2020
Merged

Conversation

jcmoraisjr
Copy link
Owner

Add a few more options on how to sort endpoints of a backend. Currently --sort-backends switches between the same k8s endpoints order and naming order - which only makes sense if backend-server-naming was changed.

--sort-endpoints-by also brings back the old behavior (v0.7 and older) of missing --sort-backends: random option will shuffle endpoints of all backends whenever a haproxy reload is fired.

Add a few more options on how to sort endpoints of a backend. Currently
`--sort-backends` switches between the same k8s endpoints order and
naming order - which only makes sense if `backend-server-naming` was
changed.

`--sort-endpoints-by` also brings back the old behavior (v0.7 and older)
of missing `--sort-backends`: `random` option will shuffle endpoints of
all backends whenever a haproxy reload is fired.
@jcmoraisjr jcmoraisjr merged commit 6523bbf into master Oct 17, 2020
@jcmoraisjr jcmoraisjr deleted the jm-sort-endpoints branch October 17, 2020 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant