Skip to content

Commit

Permalink
Merge pull request kubernetes#5196 from brendandburns/coverage
Browse files Browse the repository at this point in the history
Delete any created load balancers in guestbook.sh
  • Loading branch information
davidopp committed Mar 9, 2015
2 parents e9ea7a4 + 9821c7f commit 54a0672
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/e2e-suite/guestbook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ GUESTBOOK="${KUBE_ROOT}/examples/guestbook"

function teardown() {
${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
Expand Down

0 comments on commit 54a0672

Please sign in to comment.