Skip to content

add max score picker #752

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

Merged
merged 3 commits into from
Apr 28, 2025

Conversation

nirrozenbaum
Copy link
Contributor

@nirrozenbaum nirrozenbaum commented Apr 28, 2025

This PR adds max score picker functionality.
if there is more than one pod with the highest score, it choses randomly between those pods.

additionally, the PR embeds Pod interface in the ScoredPod as suggested by @liu-cong in code review of previous PR.

nirrozenbaum and others added 3 commits April 28, 2025 12:58
updated tests and picker accordingly

Signed-off-by: Nir Rozenbaum <[email protected]>
Signed-off-by: Maroon Ayoub <[email protected]>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 28, 2025
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 28, 2025
Copy link

netlify bot commented Apr 28, 2025

Deploy Preview for gateway-api-inference-extension ready!

Name Link
🔨 Latest commit 99fdfa8
🔍 Latest deploy log https://app.netlify.com/sites/gateway-api-inference-extension/deploys/680f9c2b635e9300087f01b1
😎 Deploy Preview https://deploy-preview-752--gateway-api-inference-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kfswain
Copy link
Collaborator

kfswain commented Apr 28, 2025

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 28, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kfswain, nirrozenbaum

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 28, 2025
@k8s-ci-robot k8s-ci-robot merged commit cea06e2 into kubernetes-sigs:main Apr 28, 2025
8 checks passed
@nirrozenbaum nirrozenbaum deleted the max-score-picker branch April 29, 2025 07:09
rlakhtakia pushed a commit to rlakhtakia/gateway-api-inference-extension that referenced this pull request Apr 30, 2025
* embedded Pod interface into ScoredPod struct.

updated tests and picker accordingly

Signed-off-by: Nir Rozenbaum <[email protected]>

* implemented max-score picker

Signed-off-by: Maroon Ayoub <[email protected]>

* minor changes in max score picker

Signed-off-by: Nir Rozenbaum <[email protected]>

---------

Signed-off-by: Nir Rozenbaum <[email protected]>
Signed-off-by: Maroon Ayoub <[email protected]>
Co-authored-by: Maroon Ayoub <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants