Commit 54a0672e authored by David Oppenheimer's avatar David Oppenheimer

Merge pull request #5196 from brendandburns/coverage

Delete any created load balancers in guestbook.sh
parents e9ea7a40 9821c7f6
...@@ -37,6 +37,10 @@ GUESTBOOK="${KUBE_ROOT}/examples/guestbook" ...@@ -37,6 +37,10 @@ GUESTBOOK="${KUBE_ROOT}/examples/guestbook"
function teardown() { function teardown() {
${KUBECTL} stop -f "${GUESTBOOK}" ${KUBECTL} stop -f "${GUESTBOOK}"
if [[ "${KUBERNETES_PROVIDER}" == "gce" ]]; then
gcloud compute forwarding-rules delete "${INSTANCE_PREFIX}-default-frontend" || true
gcloud compute target-pools delete "${INSTANCE_PREFIX}-default-frontend" || true
fi
} }
prepare-e2e prepare-e2e
......
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