mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Merge pull request #21720 from zmerlynn/i20878
Auto commit by PR queue bot
This commit is contained in:
commit
286e017e35
@ -396,6 +396,11 @@ function create-node-template {
|
||||
echo -e "${color_yellow}Attempt ${attempt} failed to create instance template $template_name. Retrying.${color_norm}" >&2
|
||||
attempt=$(($attempt+1))
|
||||
sleep $(($attempt * 5))
|
||||
|
||||
# In case the previous attempt failed with something like a
|
||||
# Backend Error and left the entry laying around, delete it
|
||||
# before we try again.
|
||||
gcloud compute instance-templates delete "$template_name" --project "${PROJECT}" &>/dev/null || true
|
||||
else
|
||||
break
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user