Merge pull request #5448 from jlowdermilk/fix-e2e

Delete master route on kube-down
This commit is contained in:
Zach Loafman
2015-03-13 11:47:36 -07:00

View File

@@ -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 \