mirror of https://github.com/k3s-io/k3s
Merge pull request #2010 from brendandburns/fix
Fix the e2e tests and kubecfg given recent additional validation.pull/6/head
commit
fca05982fc
|
@ -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"
|
||||
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue