From ff3f23e0b0439aca78e547bd2496e2fa41f82e8a Mon Sep 17 00:00:00 2001 From: Stavros Kontopoulos Date: Mon, 9 Sep 2024 13:33:40 +0300 Subject: [PATCH] ContainerHealthy reset --- pkg/reconciler/revision/reconcile_resources.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/reconciler/revision/reconcile_resources.go b/pkg/reconciler/revision/reconcile_resources.go index 3fa6f07d24fe..4c312ab8a0bd 100644 --- a/pkg/reconciler/revision/reconcile_resources.go +++ b/pkg/reconciler/revision/reconcile_resources.go @@ -117,6 +117,9 @@ func (c *Reconciler) reconcileDeployment(ctx context.Context, rev *v1.Revision) } } + if *deployment.Spec.Replicas > 0 && *deployment.Spec.Replicas == deployment.Status.ReadyReplicas { + rev.Status.MarkContainerHealthyTrue() + } return nil }