From 59918d0e891876b4181d3a4e90bafea6045a2542 Mon Sep 17 00:00:00 2001 From: Daniel Gomes-Sebastiao Date: Mon, 4 Nov 2024 04:56:43 +1300 Subject: [PATCH] feat: add irregular pod terminations to Faults view (#2738) (#2935) --- internal/render/pod.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/render/pod.go b/internal/render/pod.go index e7807352..33ce9573 100644 --- a/internal/render/pod.go +++ b/internal/render/pod.go @@ -172,6 +172,9 @@ func (p Pod) diagnose(phase string, cr, ct int) error { if cr != ct || ct == 0 { return fmt.Errorf("container ready check failed: %d of %d", cr, ct) } + if phase == Terminating { + return fmt.Errorf("pod is terminating") + } return nil }