-
Notifications
You must be signed in to change notification settings - Fork 40k
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
scheduling: fix duplicate checks for number of enabled queue sort plugin #110167
Conversation
@NoicFank: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
Hi @NoicFank. Thanks for your PR. I'm waiting for a kubernetes 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/test-infra repository. |
/sig/scheduling |
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.
nice catch.
/lgtm
/ok-to-test |
/retest |
@sanposhiho PTAL, thanks. |
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.
/lgtm
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.
just for reference, this check was intentionally moved from Profile validation in https://github.com/kubernetes/kubernetes/pull/105611/files#diff-e0fad3cb95eba326e410d482334119367325838fc0f1434825a3e481fc055f2aL99-L100, since that validation happens earlier it was put ahead of other failures to catch the same fail-fast use case and be consistent with the existing error propagation (which was caught by CI)
Looks like CI passes without it, so I'm not sure if other code has changed around it but I still think having a basic check like this early is good
@@ -347,13 +343,13 @@ func NewFramework(r Registry, profile *config.KubeSchedulerProfile, opts ...Opti | |||
} | |||
|
|||
if len(f.queueSortPlugins) == 0 { | |||
return nil, fmt.Errorf("no queue sort plugin is enabled") | |||
return nil, fmt.Errorf("no queue sort plugin is enabled for profile with scheduler name %q", profile.SchedulerName) |
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.
why remove the scheduler name from all of these checks?
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.
ah, scheduler name is added here.
/lgtm |
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.
/lgtm
/assign @Huang-Wei |
@Huang-Wei please review the code, thanks. |
/approve Thanks @NoicFank . |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Huang-Wei, NoicFank, sanposhiho 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
remove duplicate checks for number of enabled queue sort plugin, only exactly one queue sort plugin is approved.
Which issue(s) this PR fixes:
NONE
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: