Consolidate node selecting tests to only use Schedulable + Running

nodes.
This commit is contained in:
Jay Vyas
2016-05-05 16:56:25 -04:00
parent 32256d53aa
commit 326b213231
21 changed files with 44 additions and 51 deletions

View File

@@ -436,7 +436,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",
}