Skip to content

Commit

Permalink
Merge pull request kubernetes#5448 from jlowdermilk/fix-e2e
Browse files Browse the repository at this point in the history
Delete master route on kube-down
  • Loading branch information
zmerlynn committed Mar 13, 2015
2 parents 13253d0 + 9b55e1f commit 232796d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cluster/gce/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,7 @@ function kube-down {
local -a routes
routes=( $(gcloud compute routes list --project "${PROJECT}" \
--regexp "${NODE_INSTANCE_PREFIX}-.+" | awk 'NR >= 2 { print $1 }') )
routes+=("${MASTER_NAME}")
while (( "${#routes[@]}" > 0 )); do
echo Deleting routes "${routes[*]::10}"
gcloud compute routes delete \
Expand Down

0 comments on commit 232796d

Please sign in to comment.