Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Oct 28, 2024
1 parent f8fe3da commit 97bb371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .evergreen/k8s/configure-pod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ fi
echo "Deleting old pods..."
# Delete successful pods more than an hour old.
if [ "$(uname -s)" = "Darwin" ]; then
DATE=gdate
DATE="gdate"
else
DATE=date
DATE="date"
fi
# shellcheck disable=SC2046
kubectl get pods -l app=test-pod -o go-template --template '{{range .items}}{{.metadata.name}} {{.metadata.creationTimestamp}}{{"\n"}}{{end}}' | awk '$2 <= "'$($DATE -d'now-1 hours' -Ins --utc | sed 's/+0000/Z/')'" { print $1 }' | xargs --no-run-if-empty kubectl delete pod
Expand Down

0 comments on commit 97bb371

Please sign in to comment.