feat: add irregular pod terminations to Faults view (#2738) (#2935)

mine
Daniel Gomes-Sebastiao 2024-11-04 04:56:43 +13:00 committed by GitHub
parent faa7a1dfd6
commit 59918d0e89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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
}