Skip to content

Commit

Permalink
Merge pull request kubernetes#34750 from ixdy/cleanup-network
Browse files Browse the repository at this point in the history
Don't fail teardown if we can't delete the network
  • Loading branch information
mml authored Oct 13, 2016
2 parents a474b2b + 6b65d4a commit 92ef912
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cluster/gce/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ function kube-down() {
"${NETWORK}-default-ssh" \
"${NETWORK}-default-internal" # Pre-1.5 clusters
if [[ "${KUBE_DELETE_NETWORK}" == "true" ]]; then
delete-network
delete-network || true # might fail if there are leaked firewall rules
fi

# If there are no more remaining master replicas, we should update kubeconfig.
Expand Down
1 change: 0 additions & 1 deletion cluster/gke/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ function test-teardown() {
if ! "${GCLOUD}" compute networks delete --project "${PROJECT}" --quiet "${NETWORK}"; then
echo "Failed to delete network '${NETWORK}'. Listing firewall-rules:"
"${GCLOUD}" compute firewall-rules --project "${PROJECT}" list --filter="network=${NETWORK}"
return 1
fi
fi
fi
Expand Down

0 comments on commit 92ef912

Please sign in to comment.