Merge pull request #2010 from brendandburns/fix
Fix the e2e tests and kubecfg given recent additional validation.
This commit is contained in:
commit
fca05982fc
@ -38,7 +38,7 @@ function validate() {
|
|||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
local pod_id_list
|
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"
|
echo " ${#pod_id_list[@]} out of ${num_replicas} created"
|
||||||
|
|
||||||
|
@ -254,7 +254,7 @@ func RunController(ctx api.Context, image, name string, replicas int, client cli
|
|||||||
DesiredState: api.ReplicationControllerState{
|
DesiredState: api.ReplicationControllerState{
|
||||||
Replicas: replicas,
|
Replicas: replicas,
|
||||||
ReplicaSelector: map[string]string{
|
ReplicaSelector: map[string]string{
|
||||||
"simpleService": name,
|
"name": name,
|
||||||
},
|
},
|
||||||
PodTemplate: api.PodTemplate{
|
PodTemplate: api.PodTemplate{
|
||||||
DesiredState: api.PodState{
|
DesiredState: api.PodState{
|
||||||
@ -270,7 +270,7 @@ func RunController(ctx api.Context, image, name string, replicas int, client cli
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: map[string]string{
|
Labels: map[string]string{
|
||||||
"simpleService": name,
|
"name": name,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user