cluster-profiler: do not dump data from a pod that is under deletion
@@ -135,6 +135,8 @@ func podIsReadyComponent(pod *k8sv1.Pod) bool {
return false
} else if pod.Status.Phase != k8sv1.PodRunning {
return false
+ } else if pod.DeletionTimestamp != nil {
+ return false
} else {
for _, cond := range pod.Status.Conditions {
if cond.Type == k8sv1.PodReady && cond.Status == k8sv1.ConditionTrue {
