e2e: Fix GetReadySchedulableNodesOrDie for taints
This changes framework.GetReadySchedulableNodesOrDie and framework.GetMasterAndWorkerNodesOrDie so that nodes that can't take a generic fake pod due to a taint/toleration mismatch aren't returned. This is a rehash of #35210, but pulls in the scheduler code.
This commit is contained in:
@@ -316,7 +316,9 @@ func (config *NetworkingTestConfig) createNetShellPodSpec(podName string, node s
|
||||
ReadinessProbe: probe,
|
||||
},
|
||||
},
|
||||
NodeName: node,
|
||||
NodeSelector: map[string]string{
|
||||
"kubernetes.io/hostname": node,
|
||||
},
|
||||
},
|
||||
}
|
||||
return pod
|
||||
|
||||
Reference in New Issue
Block a user