mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
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:
commit
dbc44e4f49
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user