Skip to content

Commit

Permalink
check for deletion timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Vasilev <[email protected]>
  • Loading branch information
Omrigan committed Aug 29, 2024
1 parent 728ab37 commit 2a336d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neonvm/controllers/vm_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,9 @@ const (
//
// This is *similar* to the value of pod.Status.Phaseg .
func runnerStatus(pod *corev1.Pod) runnerStatusKind {
if pod.DeletionTimestamp != nil {
return runnerFailed
}
switch pod.Status.Phase {
case "", corev1.PodPending:
return runnerPending
Expand Down

0 comments on commit 2a336d8

Please sign in to comment.