Merge pull request #111670 from brianpursley/gce-util

Change cluster/gce/util to wait for firewall rule creation and fail on error
This commit is contained in:
Kubernetes Prow Robot 2022-08-23 17:16:56 -07:00 committed by GitHub
commit dbc44e4f49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2429,6 +2429,12 @@ function create-network() {
--allow "tcp:3389" &
fi
fi
kube::util::wait-for-jobs || {
code=$?
echo -e "${color_red}Failed to create firewall rules.${color_norm}" >&2
exit $code
}
}
function expand-default-subnetwork() {
@ -3099,7 +3105,9 @@ function create-nodes-firewall() {
# Wait for last batch of jobs
kube::util::wait-for-jobs || {
echo -e "${color_red}Some commands failed.${color_norm}" >&2
code=$?
echo -e "${color_red}Failed to create firewall rule.${color_norm}" >&2
exit $code
}
}