From c87f97a483ab1fcb7998e667d6f6aad772e4d7aa Mon Sep 17 00:00:00 2001 From: Katia Esposito Date: Mon, 1 Jul 2024 11:39:18 +0200 Subject: [PATCH] update: retry --- manifests/update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/update.sh b/manifests/update.sh index ab61743..70f1f0b 100755 --- a/manifests/update.sh +++ b/manifests/update.sh @@ -136,7 +136,7 @@ for POD in $PODS; do # 5.1. MKTEMP a folder TMP_FOLDER=$(mktemp -d) # 5.2. kubectl cp the folder to the temp folder - kubectl -n adsblol cp "$POD:$FOLDER" "$TMP_FOLDER" + kubectl -n adsblol cp --retries=15 "$POD:$FOLDER" "$TMP_FOLDER" # If no data was copied, skip if [ ! "$(ls -A $TMP_FOLDER)" ]; then echo "[ info] $FOLDER is empty. Skipping." @@ -169,7 +169,7 @@ for POD in $PODS; do done # Run cleanup in the pod - kubectl -n adsblol exec -ti $POD -- bash /var/globe_history/cleanup.sh + kubectl -n adsblol exec -ti $POD -- bash /var/globe_history/cleanup.sh || true done # AFTER_SCRIPT might be set in .envrc # This is useful for running commands to clean up after the script