Commit 451727aa authored by Robert Bailey's avatar Robert Bailey

Always stop the guestbook example regardless of how the tests finishes. This

should more reliably clean up the external load balancer.
parent 53ec66ca
...@@ -33,9 +33,15 @@ export KUBECTL KUBE_CONFIG_FILE ...@@ -33,9 +33,15 @@ export KUBECTL KUBE_CONFIG_FILE
source "${KUBE_ROOT}/cluster/kube-env.sh" source "${KUBE_ROOT}/cluster/kube-env.sh"
source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh" source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
GUESTBOOK="${KUBE_ROOT}/examples/guestbook"
function teardown() {
${KUBECTL} stop -f "${GUESTBOOK}"
}
prepare-e2e prepare-e2e
GUESTBOOK="${KUBE_ROOT}/examples/guestbook" trap "teardown" EXIT
echo "WARNING: this test is a no op that only attempts to launch guestbook resources." echo "WARNING: this test is a no op that only attempts to launch guestbook resources."
# Launch the guestbook example # Launch the guestbook example
......
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