Skip to content

Commit ee4b3fc

Browse files
committed
Update running pod status logic
1 parent 9b3be8b commit ee4b3fc

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
@@ -173,11 +173,7 @@ func GetPodStatus(pod *kcore.Pod) PodStatus {
173173
numKilled := 0
174174
for _, containerStatus := range pod.Status.ContainerStatuses {
175175
if containerStatus.State.Running != nil {
176-
if containerStatus.Ready {
177-
numRunning++
178-
} else {
179-
numWaiting++
180-
}
176+
numRunning++
181177
} else if containerStatus.State.Terminated != nil {
182178
exitCode := containerStatus.State.Terminated.ExitCode
183179
if exitCode == 0 {

0 commit comments

Comments
 (0)