Merge pull request #71726 from mbrannock/loop-pr

Create managed instance groups for nodes in parallel
This commit is contained in:
Kubernetes Prow Robot 2018-12-05 20:32:00 -08:00 committed by GitHub
commit de6f5ab268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2342,7 +2342,6 @@ function create-nodes() {
local instances_left=${nodes}
#TODO: parallelize this loop to speed up the process
for ((i=1; i<=${NUM_MIGS}; i++)); do
local group_name="${NODE_INSTANCE_PREFIX}-group-$i"
if [[ $i == ${NUM_MIGS} ]]; then
@ -2365,8 +2364,9 @@ function create-nodes() {
"${group_name}" \
--zone "${ZONE}" \
--project "${PROJECT}" \
--timeout "${MIG_WAIT_UNTIL_STABLE_TIMEOUT}" || true;
--timeout "${MIG_WAIT_UNTIL_STABLE_TIMEOUT}" || true &
done
wait
}
# Assumes: