Commit 50a399fa authored by Filipe Brandenburger's avatar Filipe Brandenburger

Merge pull request #4341 from zmerlynn/i4340

Fix e2e-internal scripts for cluster-size and watch-events
parents 15c57efd 9257b58e
...@@ -31,6 +31,4 @@ source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh" ...@@ -31,6 +31,4 @@ source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
prepare-e2e prepare-e2e
while true; do ${KUBECTL} get minions --no-headers | wc -l
${KUBECTL} --watch-only get events
done
...@@ -31,4 +31,6 @@ source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh" ...@@ -31,4 +31,6 @@ source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
prepare-e2e prepare-e2e
${KUBECTL} get minions --no-headers | wc -l while true; do
${KUBECTL} --watch-only get events
done
...@@ -184,7 +184,7 @@ func Up() bool { ...@@ -184,7 +184,7 @@ func Up() bool {
// Ensure that the cluster is large engough to run the e2e tests. // Ensure that the cluster is large engough to run the e2e tests.
func ValidateClusterSize() { func ValidateClusterSize() {
// Check that there are at least 3 minions running // Check that there are at least 3 minions running
res, stdout, _ := finishRunningWithOutputs("validate cluster size", exec.Command(path.Join(*root, "hack/e2e-internal/e2e-watch-events.sh"))) res, stdout, _ := finishRunningWithOutputs("validate cluster size", exec.Command(path.Join(*root, "hack/e2e-internal/e2e-cluster-size.sh")))
if !res { if !res {
log.Fatal("Could not get nodes to validate cluster size") log.Fatal("Could not get nodes to validate cluster size")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment