Merge pull request #5262 from bprashanth/e2e_services

Delete target pools and forwarding rules with -q in guestbook.sh
This commit is contained in:
Zach Loafman 2015-03-11 19:52:49 -07:00
commit 996f9e6710

View File

@ -38,9 +38,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
local REGION=${ZONE%-*}
gcloud compute forwarding-rules delete -q --region ${REGION} "${INSTANCE_PREFIX}-default-frontend" || true
gcloud compute target-pools delete -q --region ${REGION} "${INSTANCE_PREFIX}-default-frontend" || true
fi
}
prepare-e2e