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
Adding support for Topology Aware Hints #99522
Conversation
/cc |
df43282
to
c6e2ebe
Compare
/retest |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
8445c39
to
584d277
Compare
This may be a noisy PR, so removing reviewers that were auto-assigned, feel free to add yourself back if you're interested. |
I'm continuing to work on this PR, but I think we've reached a point where review would be valuable. I think the most significant and complex part of this PR is the controller logic. That is largely done now, although I need to significantly improve test coverage. Feedback on the structure and logic here would be very appreciated. I still need to work on:
/cc @andrewsykim @bowei @dcbw @wojtek-t |
Now that EndpointSlice GA API and Controller PRs are in, I've rebased this PR one more time. Leaving the hold in place because I want to make sure Tim is OK with the annotation approach I've taken here. Happy to change it if not. |
/retest |
Today's updates:
|
givingZone, numToGive := getMost(givingZonesDesired) | ||
receivingZone, numToReceive := getMost(receivingZonesDesired) | ||
|
||
if (numToGive < 1.0 && numToReceive < 1.0) || numToGive < 0.0 || numToReceive < 0.0 { |
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.
does this guarantee to break 😄
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.
Yeah that's a good question. I can't find any edge cases where it wouldn't, but I may have missed one. I've added some better test coverage that includes some unexpected/invalid inputs. I've also slightly expanded the conditions that would cause this to break out of the loop. Let me know if you can think of any edge cases I'm missing.
@robscott: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/test pull-kubernetes-integration /test pull-kubernetes-e2e-kind-ipv6 |
Removing hold now that @thockin has looked at annotation config. I think this is good to go now, PR still needs a LGTM if anyone is able to add that. |
/lgtm |
/hold cancel |
What type of PR is this?
/kind feature
/kind api-change
What this PR does / why we need it:
This adds initial alpha support for Topology Aware Hints.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/sig network
/priority important-soon