Delete target pools and forwarding rules in guestbook.sh, with -q
This commit is contained in:
parent
1231e65829
commit
1ae44c3a78
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user