Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
trichardsonjr78 committed May 17, 2024
1 parent 5ab7116 commit 7b28661
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/api/get_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -1147,12 +1147,14 @@ func getPodStatus(pod *corev1.Pod, clientset *kubernetes.Clientset, namespace st
}
phase := pod.Status.Phase
if phase == "Succeeded" {
time.Sleep(60)
err := deletePod(namespace, pod.Name, clientset)
if err != nil {
return err
}
break
return nil
} else if phase == "Failed" {
time.Sleep(60)
err := deletePod(namespace, pod.Name, clientset)
if err != nil {
return err
Expand All @@ -1169,7 +1171,6 @@ func getPodStatus(pod *corev1.Pod, clientset *kubernetes.Clientset, namespace st
}

}
return nil

}

Expand Down

0 comments on commit 7b28661

Please sign in to comment.