Skip to content

Commit

Permalink
Fix the e2e tests and kubecfg given recent additional validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Oct 27, 2014
1 parent 019170e commit df3dd28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hack/e2e-suite/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions pkg/kubecfg/kubecfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -270,7 +270,7 @@ func RunController(ctx api.Context, image, name string, replicas int, client cli
},
},
Labels: map[string]string{
"simpleService": name,
"name": name,
},
},
},
Expand Down

0 comments on commit df3dd28

Please sign in to comment.