Skip to content

Commit

Permalink
[geth] fix pod deletion timestamp check in s3-cron
Browse files Browse the repository at this point in the history
  • Loading branch information
VladStarr committed Oct 26, 2023
1 parent 0bdf312 commit 94b12d0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions dysnix/geth/templates/scripts/_s3-cron.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ check_pod_readiness() {
deletion_timestamp=$("$KUBECTL" get -o jsonpath='{.metadata.deletionTimestamp}' pod "$1")
check_ret $? "$(date -Iseconds) Cannot get pod ${1}, abort"

if [ -z "$deletion_timestamp" ]; then
echo "$(date -Iseconds) Pod ${1} is ready, continuing"
else
echo "$(date -Iseconds) Pod ${1} is terminating, try another time"
fi
[ -n "$deletion_timestamp" ]
check_ret $? "$(date -Iseconds) Pod ${1} is terminating now, try another time" 1
}

enable_sync() {
Expand Down

0 comments on commit 94b12d0

Please sign in to comment.