Skip to content

Commit

Permalink
update: retry
Browse files Browse the repository at this point in the history
  • Loading branch information
iakat committed Jul 1, 2024
1 parent ffa0aed commit c87f97a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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

0 comments on commit c87f97a

Please sign in to comment.