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

feat: implement new address sorting algorithm #9847

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smira
Copy link
Member

@smira smira commented Nov 29, 2024

Fixes #9725

See #9749

@smira
Copy link
Member Author

smira commented Nov 29, 2024

I'm not sure how to configure sorting algorithm (is the machine config not too late?).

Probably safe to keep old defaults.

tl;dr is trying to drop alphanumeric sort on resource IDs in favor of proper comparison which includes putting shorter prefixes first.

heavy WIP at the moment, mostly refactoring

}

// if addresses are equal, compare prefix lengths
return cmp.Compare(a.Bits(), b.Bits())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be -cmp.Compare probably

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kubelet/etcd uses wrong IPv6 Address
1 participant