Fix the e2e tests and kubecfg given recent additional validation.

This commit is contained in:
Brendan Burns
2014-10-27 13:39:21 -07:00
parent 019170e6fb
commit df3dd288f2
2 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ function validate() {
sleep 2
local pod_id_list
pod_id_list=($($KUBECFG -template='{{range.Items}}{{.Name}} {{end}}' -l simpleService="${CONTROLLER_NAME}" list pods))
pod_id_list=($($KUBECFG -template='{{range.Items}}{{.Name}} {{end}}' -l name="${CONTROLLER_NAME}" list pods))
echo " ${#pod_id_list[@]} out of ${num_replicas} created"

View File

@@ -254,7 +254,7 @@ func RunController(ctx api.Context, image, name string, replicas int, client cli
DesiredState: api.ReplicationControllerState{
Replicas: replicas,
ReplicaSelector: map[string]string{
"simpleService": name,
"name": name,
},
PodTemplate: api.PodTemplate{
DesiredState: api.PodState{
@@ -270,7 +270,7 @@ func RunController(ctx api.Context, image, name string, replicas int, client cli
},
},
Labels: map[string]string{
"simpleService": name,
"name": name,
},
},
},