-
Notifications
You must be signed in to change notification settings - Fork 206
Reorganize scheduling plugins by plugin name #1921
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
base: main
Are you sure you want to change the base?
Reorganize scheduling plugins by plugin name #1921
Conversation
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Welcome @rockswe! |
|
Hi @rockswe. Thanks for your PR. I'm waiting for a github.com 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 |
ahg-g
left a comment
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.
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. |
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.
I would create a plugins/common and organize "common" packages under it, like picker/picker.go
Co-authored-by: Abdullah Gharaibeh <40361897+ahg-g@users.noreply.github.com>
another option is to move it under |
Ack and thanks for the guidance. I kept the helpers under |
Thanks, make sense, lets do that in a follow up PR then. |
got it, will leave this PR as is and move the scheduling test helpers and picker common helpers to the suggested locations in a follow up PR. |
|
Here is how the plugins will look like under the new organization:
Note that both pickershared and test will be removed in a followup PR. @kfswain @nirrozenbaum can someone pls review and lgtm so we have at least two looking at this PR. /approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, rockswe 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 |
|
Looks good! I notice that we are essentially fully flattening the plugins directory. (for example, If we want to do it flat, could we come up with some naming conventions to make it a little easier to read? ex: Alternatively we can just make the directories the feature names, and put all the plugin points within the dir. I do kinda like the flat structure for quick glance value. It may get too wide in the future, but we shall see. TL;DR: lets converge on a convention (author's choice) to make it a tad easier to read/navigate then happy to stamp, thanks! |
Thanks for the catch, I missed it! My strong preference is to organize by feature, so everything for predicated latency should be under one directory, I am fine with naming it |
|
@rockswe we discussed the naming format in today's community meeting and converged on the format
|
|
PR needs rebase. 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. |

/kind cleanup
What this PR does / why we need it:
Reorganizes scheduling plugins under
pkg/epp/scheduling/framework/pluginsinto per-plugin directories (e.g.,prefixcachescorer,predictedlatencyscorer,maxscorepicker, etc.), with imports/docs/tests updated accordingly. Picker helpers moved topickershared, and the existing picker tests were split into per-package files (no new behavior).Which issue(s) this PR fixes:
Fixes #1889
Does this PR introduce a user-facing change?:
cc @ahg-g