mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #9746 from justinsb/aws_faster_tagging
AWS: delay less when creating tags
This commit is contained in:
commit
f033349bea
@ -473,12 +473,11 @@ function add-tag {
|
|||||||
echo "Adding tag to ${1}: ${2}=${3}"
|
echo "Adding tag to ${1}: ${2}=${3}"
|
||||||
|
|
||||||
# We need to retry in case the resource isn't yet fully created
|
# We need to retry in case the resource isn't yet fully created
|
||||||
sleep 3
|
|
||||||
n=0
|
n=0
|
||||||
until [ $n -ge 5 ]; do
|
until [ $n -ge 25 ]; do
|
||||||
$AWS_CMD create-tags --resources ${1} --tags Key=${2},Value=${3} > $LOG && return
|
$AWS_CMD create-tags --resources ${1} --tags Key=${2},Value=${3} > $LOG && return
|
||||||
n=$[$n+1]
|
n=$[$n+1]
|
||||||
sleep 15
|
sleep 3
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Unable to add tag to AWS resource"
|
echo "Unable to add tag to AWS resource"
|
||||||
|
Loading…
Reference in New Issue
Block a user