-
Notifications
You must be signed in to change notification settings - Fork 182
Loosen validation for inference pool crd to support up to 8 ports per inference pool #1653
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
Conversation
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Welcome @syw14! |
Hi @syw14. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
/ok-to-test |
I think the test failure is from using a stale version of dependency because the go.sum shows we are using golang.org/x/tools v0.36.0 --> v0.37.0. k8s.io/[email protected] golang.org/x/[email protected] How do we usually fix this kind of issue? |
seems like an issue in CI. /retest |
/approve leaving final stamp for @robscott |
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.
Thanks @syw14!
// +kubebuilder:validation:MinItems=1 | ||
// +kubebuilder:validation:MaxItems=1 | ||
// +kubebuilder:validation:MaxItems=8 | ||
// +kubebuilder:validation:XValidation:message="port number must be unique",rule="self.all(p1, self.exists_one(p2, p1.number==p2.number))" |
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.
Do you mind adding some tests for this validation here? https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/main/test/cel/inferencepool_test.go#L33
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.
Thank you, added!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nirrozenbaum, robscott, syw14 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 |
Thanks @syw14! /lgtm |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Loosen validation for inference pool crd to support up to 8 ports per inference pool
Which issue(s) this PR fixes:
Fixes ##1336
Does this PR introduce a user-facing change?:
no