Skip to content

Commit dbc68d9

Browse files
committed
Update running pod status logic
(cherry picked from commit ee4b3fc)
1 parent bb6d2bf commit dbc68d9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/lib/k8s/pod.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,7 @@ func GetPodStatus(pod *kcore.Pod) PodStatus {
171171
numKilled := 0
172172
for _, containerStatus := range pod.Status.ContainerStatuses {
173173
if containerStatus.State.Running != nil {
174-
if containerStatus.Ready {
175-
numRunning++
176-
} else {
177-
numWaiting++
178-
}
174+
numRunning++
179175
} else if containerStatus.State.Terminated != nil {
180176
exitCode := containerStatus.State.Terminated.ExitCode
181177
if exitCode == 0 {

0 commit comments

Comments
 (0)