Skip to content

Commit ec767a9

Browse files
authored
Pods being deleted should not be counted as healthy running pods. (#158)
1 parent bdcd8ee commit ec767a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/controller/appwrapper/appwrapper_controller.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,9 @@ func (r *AppWrapperReconciler) getPodStatus(ctx context.Context, aw *workloadv1b
483483
case v1.PodPending:
484484
summary.pending += 1
485485
case v1.PodRunning:
486-
summary.running += 1
486+
if pod.DeletionTimestamp.IsZero() {
487+
summary.running += 1
488+
}
487489
case v1.PodSucceeded:
488490
summary.succeeded += 1
489491
case v1.PodFailed:

0 commit comments

Comments
 (0)