Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions maintenance_cleanup/delete-dead-pods.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ if [ "$dryrun" = "false" ]; then
{system("bash -c '\''oc delete pod -n "$1" "$2" '\''")}'

#Force kill any hanging pods
oc get pods --no-headers | awk '$4 == "Terminating" \
{system("bash -c '\''oc delete pod -n "$1" "$2" --grace-period=0 '\''")}'
oc get pods --all-namespaces --no-headers | awk '$4 == "Terminating" \
{system("bash -c '\''oc delete pod -n "$1" "$2" --force --grace-period=0 '\''")}'

exit 0
fi
Expand Down