Update cluster_size_autoscaling.go

CreateNodeSelectorPods respects nodeSelector
This commit is contained in:
Harry Zhang 2016-11-26 22:51:06 +08:00
parent 545f749a0d
commit 3777777e13

View File

@ -460,13 +460,13 @@ func CreateNodeSelectorPods(f *framework.Framework, id string, replicas int, nod
config := &testutils.RCConfig{
Client: f.ClientSet,
InternalClient: f.InternalClientset,
Name: "node-selector",
Name: id,
Namespace: f.Namespace.Name,
Timeout: defaultTimeout,
Image: framework.GetPauseImageName(f.ClientSet),
Replicas: replicas,
HostPorts: map[string]int{"port1": 4321},
NodeSelector: map[string]string{"cluster-autoscaling-test.special-node": "true"},
NodeSelector: nodeSelector,
}
err := framework.RunRC(*config)
if expectRunning {