Delete master route on kube-down

This commit is contained in:
Jeff Lowdermilk 2015-03-13 11:00:19 -07:00
parent 6319f8a568
commit 9b55e1f176

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 \