Skip to content

Commit

Permalink
ContainerHealthy reset (#935)
Browse files Browse the repository at this point in the history
Co-authored-by: Stavros Kontopoulos <[email protected]>
  • Loading branch information
openshift-cherrypick-robot and skonto authored Oct 29, 2024
1 parent d4929dc commit c263082
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/reconciler/revision/reconcile_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c263082

Please sign in to comment.