-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
[WIP]Convert existing function to default queue sort plugin #82204
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: hex108 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
dc55862
to
90c2dd2
Compare
debf66f
to
bfecfff
Compare
bfecfff
to
89d44ef
Compare
@hex108: 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. |
} | ||
if len(plugins.QueueSort.Enabled) == 0 { | ||
plugins.QueueSort.Enabled = append(plugins.QueueSort.Enabled, | ||
config.Plugin{Name: frameworkplugins.DefaultQueueSortPluginName}) |
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.
If we use k8s.io/kubernetes/pkg/scheduler/framework/plugins/queuesort
.Name
( "default-queue-sort-plugin"), there will be an import cycle(note that k8s.io/kubernetes/pkg/scheduler/framework/plugins/queuesort
has imported k8s.io/kubernetes/pkg/scheduler/framework/v1alpha1
), so I introduce frameworkplugins.DefaultQueueSortPluginName
to resolve it.
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@hex108: 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/test-infra repository. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Convert existing function to default queue sort plugin, it will be used if admin does not configure queue sort plugin, otherwise use configured queue sort plugin.
Which issue(s) this PR fixes:
Fixes #80304
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/sig scheduling