Commit 3777777e authored by Harry Zhang's avatar Harry Zhang

Update cluster_size_autoscaling.go

CreateNodeSelectorPods respects nodeSelector
parent 545f749a
...@@ -460,13 +460,13 @@ func CreateNodeSelectorPods(f *framework.Framework, id string, replicas int, nod ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment