From 2131ed561680b7bf256bab225d746118b5da4e0a Mon Sep 17 00:00:00 2001 From: Vishnu Kannan Date: Sat, 24 Jan 2015 00:09:44 +0000 Subject: [PATCH] Fix monitoring.sh --- hack/e2e-suite/monitoring.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/e2e-suite/monitoring.sh b/hack/e2e-suite/monitoring.sh index 30d30988b8b..33d1de435bb 100755 --- a/hack/e2e-suite/monitoring.sh +++ b/hack/e2e-suite/monitoring.sh @@ -51,8 +51,8 @@ function setup { function cleanup { "${KUBECFG}" resize monitoring-influxGrafanaController 0 &> /dev/null || true "${KUBECFG}" resize monitoring-heapsterController 0 &> /dev/null || true - while "${KUBECTL}" -l "name=influxGrafana" -o template -t {{range.items}}{{.id}}:{{end}} | grep -c . &> /dev/null \ - || "${KUBECTL}" -l "name=heapster" -o template -t {{range.items}}{{.id}}:{{end}} | grep -c . &> /dev/null; do + while "${KUBECTL}" get pods -l "name=influxGrafana" -o template -t {{range.items}}{{.id}}:{{end}} | grep -c . &> /dev/null \ + || "${KUBECTL}" get pods -l "name=heapster" -o template -t {{range.items}}{{.id}}:{{end}} | grep -c . &> /dev/null; do sleep 2 done "${KUBECTL}" delete -f "${MONITORING}/" &> /dev/null || true