mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
avoid unschedulable pods in networking.go
This commit is contained in:
parent
fc927e8719
commit
83898644c2
@ -145,7 +145,7 @@ var _ = Describe("Networking", func() {
|
||||
// previous tests may have cause failures of some nodes. Let's skip
|
||||
// 'Not Ready' nodes, just in case (there is no need to fail the test).
|
||||
filterNodes(nodes, func(node api.Node) bool {
|
||||
return isNodeConditionSetAsExpected(&node, api.NodeReady, true)
|
||||
return !node.Spec.Unschedulable && isNodeConditionSetAsExpected(&node, api.NodeReady, true)
|
||||
})
|
||||
|
||||
if len(nodes.Items) == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user