mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #5262 from bprashanth/e2e_services
Delete target pools and forwarding rules with -q in guestbook.sh
This commit is contained in:
commit
996f9e6710
@ -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