-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Scheduler predicates tests should consider unschedulable #28970
Scheduler predicates tests should consider unschedulable #28970
Conversation
cc @kubernetes/sig-testing |
@@ -197,7 +197,10 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() { | |||
c = f.Client | |||
ns = f.Namespace.Name | |||
nodeList = &api.NodeList{} | |||
nodes, err := c.Nodes().List(api.ListOptions{}) | |||
nodes, err := c.Nodes().List(api.ListOptions{ |
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.
Maybe try using framework.util.GetReadySchedulableNodesOrDie instead?
486055d
to
d044347
Compare
@spiffxp thx for pointing out, |
LGTM |
d044347
to
1d7ee42
Compare
I think it may also fix #27655 |
GCE e2e build/test passed for commit 1d7ee42. |
Need LGTM after rebase |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 1d7ee42. |
Automatic merge from submit-queue |
This most likely broke MaxPods test - master node is not schedulable, so we don't put master machine on the list, which means we're not correctly filtering out pods in getPodsScheduled function. Reverting. Correct fix would be to add a check in the else part of the loop:
though it's not needed for our jenkins setup. It won't solve taints, as |
…_should_consider_unschedulable Automatic merge from submit-queue Revert "Scheduler predicates tests should consider unschedulable" Reverts #28970 See #28970 (comment) cc @pskrzyns @rmmh
…OrDie_in_scheduler_predicates_tests Automatic merge from submit-queue Use GetMasterAndWorkerNodesOrDie in scheduler predicates tests fixes #28857 follow up to #28970 Makes sure that unschedulable node won't be count as worker node. Its using [GetMasterAndWorkerNodesOrDie](https://github.com/kubernetes/kubernetes/blob/master/test/e2e/framework/util.go#L4743) method which is used also in [density tests](https://github.com/kubernetes/kubernetes/blob/master/test/e2e/density.go#L389). @gmarek PTAL
fixes #28857