From 826dec49ad5c20facb63f5f4ae116a93642165bc Mon Sep 17 00:00:00 2001 From: aaronfern Date: Wed, 14 Sep 2022 13:22:08 +0530 Subject: [PATCH] Retry curl for etcd configuration in case of error --- VERSION | 2 +- etcd_bootstrap_script.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index bfd98e2..24fc22a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v3.4.13-bootstrap-7 +v3.4.13-bootstrap-8 diff --git a/etcd_bootstrap_script.sh b/etcd_bootstrap_script.sh index e3afccc..24c8a5f 100755 --- a/etcd_bootstrap_script.sh +++ b/etcd_bootstrap_script.sh @@ -30,7 +30,7 @@ start_managed_etcd(){ fi rm -rf $VALIDATION_MARKER CONFIG_FILE=/etc/etcd.conf.yaml - curl "$BACKUP_ENDPOINT/config" -o $CONFIG_FILE + curl --retry 5 --retry-delay 5 --retry-all-errors "$BACKUP_ENDPOINT/config" -o $CONFIG_FILE minimumsize=50 actualsize=$(wc -c <$CONFIG_FILE) if [ $actualsize -le $minimumsize ]; then