Merge pull request #25261 from jayunit100/readySched

Support GetReadySchedulable pods for all node selecting tests.
This commit is contained in:
Daniel Smith
2016-05-18 17:24:09 -07:00
21 changed files with 44 additions and 51 deletions

View File

@@ -442,7 +442,7 @@ func (f *Framework) CreateServiceForSimpleApp(contPort, svcPort int, appName str
// CreatePodsPerNodeForSimpleApp Creates pods w/ labels. Useful for tests which make a bunch of pods w/o any networking.
func (f *Framework) CreatePodsPerNodeForSimpleApp(appName string, podSpec func(n api.Node) api.PodSpec, maxCount int) map[string]string {
nodes := ListSchedulableNodesOrDie(f.Client)
nodes := GetReadySchedulableNodesOrDie(f.Client)
labels := map[string]string{
"app": appName + "-pod",
}