feat: fix testcase

This commit is contained in:
wencaiwulue
2023-02-18 21:03:29 +08:00
parent 9765b78ca4
commit 840695182c
3 changed files with 10 additions and 2 deletions

View File

@@ -74,6 +74,7 @@ jobs:
- name: Wait for pods reviews to be ready
run: |
kubectl wait pods -l app=reviews --for=condition=Ready --timeout=3600s
kubectl wait pods -l app=productpage --for=condition=Ready --timeout=3600s
kubectl get all -o wide
kubectl get nodes -o yaml
ifconfig
@@ -146,6 +147,7 @@ jobs:
- name: Wait for pods reviews to be ready
run: |
kubectl wait pods -l app=reviews --for=condition=Ready --timeout=3600s
kubectl wait pods -l app=productpage --for=condition=Ready --timeout=3600s
kubectl get all -o wide
kubectl get nodes -o yaml
ifconfig

View File

@@ -112,7 +112,10 @@ func InjectVPNAndEnvoySidecar(ctx1 context.Context, factory cmdutil.Factory, cli
log.Error(err)
}
})
_ = util.RolloutStatus(ctx1, factory, namespace, workloads, time.Minute*5)
if err != nil {
return err
}
err = util.RolloutStatus(ctx1, factory, namespace, workloads, time.Minute*60)
return err
}

View File

@@ -472,7 +472,10 @@ func InjectVPNSidecar(ctx1 context.Context, factory cmdutil.Factory, namespace,
}
})
}
_ = util.RolloutStatus(ctx1, factory, namespace, workloads, time.Minute*5)
if err != nil {
return err
}
err = util.RolloutStatus(ctx1, factory, namespace, workloads, time.Minute*60)
return err
}