redhat-cop / openshift-toolkit

A collection of code samples to help you get started with OpenShift
Apache License 2.0
232 stars 150 forks source link

Add --all-namespaces to force kill of hanging pods in any namespace o… #131

Open dvdcr opened 4 years ago

dvdcr commented 4 years ago

Hi, i've included --all-namespaces parameter on the force kill part of the script to delete hanging pods executing in other namespaces than current one. In some cases, hanging pods pods wasn't killed unless --force command was included in the oc delete command.

Regards