Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Merge pull request #26 from aaronfern/fetch-config-retry
Browse files Browse the repository at this point in the history
Retry curl for etcd configuration in case of error
  • Loading branch information
unmarshall authored Sep 15, 2022
2 parents fe182d9 + 826dec4 commit 5b303e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.4.13-bootstrap-7
v3.4.13-bootstrap-8
2 changes: 1 addition & 1 deletion etcd_bootstrap_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b303e0

Please sign in to comment.