Commit 232796db authored by Zach Loafman's avatar Zach Loafman

Merge pull request #5448 from jlowdermilk/fix-e2e

Delete master route on kube-down
parents 13253d09 9b55e1f1
...@@ -785,6 +785,7 @@ function kube-down { ...@@ -785,6 +785,7 @@ function kube-down {
local -a routes local -a routes
routes=( $(gcloud compute routes list --project "${PROJECT}" \ routes=( $(gcloud compute routes list --project "${PROJECT}" \
--regexp "${NODE_INSTANCE_PREFIX}-.+" | awk 'NR >= 2 { print $1 }') ) --regexp "${NODE_INSTANCE_PREFIX}-.+" | awk 'NR >= 2 { print $1 }') )
routes+=("${MASTER_NAME}")
while (( "${#routes[@]}" > 0 )); do while (( "${#routes[@]}" > 0 )); do
echo Deleting routes "${routes[*]::10}" echo Deleting routes "${routes[*]::10}"
gcloud compute routes delete \ gcloud compute routes delete \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment