Commit 3f43dd32 authored by Brendan Burns's avatar Brendan Burns

Add some extra checks to (hopefully) prevent flakes.

parent 119fe37f
...@@ -64,11 +64,18 @@ for test in http exec; do ...@@ -64,11 +64,18 @@ for test in http exec; do
waitForNotPending waitForNotPending
before=$(${KUBECFG} '-template={{.currentState.info.liveness.restartCount}}' get pods/liveness-${test}) before=$(${KUBECFG} '-template={{.currentState.info.liveness.restartCount}}' get pods/liveness-${test})
while [[ "${before}" == "<no value>" ]]; do
before=$(${KUBECFG} '-template={{.currentState.info.liveness.restartCount}}' get pods/liveness-${test})
done
echo "Waiting for restarts." echo "Waiting for restarts."
for i in $(seq 1 24); do for i in $(seq 1 24); do
sleep 10 sleep 10
after=$(${KUBECFG} '-template={{.currentState.info.liveness.restartCount}}' get pods/liveness-${test}) after=$(${KUBECFG} '-template={{.currentState.info.liveness.restartCount}}' get pods/liveness-${test})
echo "Restarts: ${after} > ${before}" echo "Restarts: ${after} > ${before}"
if [[ "${after}" == "<no value>" ]]; then
continue
fi
if [[ "${after}" > "${before}" ]]; then if [[ "${after}" > "${before}" ]]; then
break break
fi fi
......
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