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{ config := &testutils.RCConfig{
Client: f.ClientSet, Client: f.ClientSet,
InternalClient: f.InternalClientset, InternalClient: f.InternalClientset,
Name: "node-selector", Name: id,
Namespace: f.Namespace.Name, Namespace: f.Namespace.Name,
Timeout: defaultTimeout, Timeout: defaultTimeout,
Image: framework.GetPauseImageName(f.ClientSet), Image: framework.GetPauseImageName(f.ClientSet),
Replicas: replicas, Replicas: replicas,
HostPorts: map[string]int{"port1": 4321}, HostPorts: map[string]int{"port1": 4321},
NodeSelector: map[string]string{"cluster-autoscaling-test.special-node": "true"}, NodeSelector: nodeSelector,
} }
err := framework.RunRC(*config) err := framework.RunRC(*config)
if expectRunning { if expectRunning {