diff --git a/pkg/controller/podgc/gc_controller.go b/pkg/controller/podgc/gc_controller.go index 8739bd2fd8e..7502675c7a0 100644 --- a/pkg/controller/podgc/gc_controller.go +++ b/pkg/controller/podgc/gc_controller.go @@ -348,6 +348,7 @@ func (gcc *PodGCController) markFailedAndDeletePodWithCondition(ctx context.Cont if pod.Status.Phase != v1.PodSucceeded && pod.Status.Phase != v1.PodFailed { newStatus := pod.Status.DeepCopy() newStatus.Phase = v1.PodFailed + newStatus.ObservedGeneration = apipod.GetPodObservedGenerationIfEnabled(pod) if condition != nil { apipod.UpdatePodCondition(newStatus, condition) }