Skip to content

Commit

Permalink
ContainerHealthy reset
Browse files Browse the repository at this point in the history
  • Loading branch information
skonto authored and openshift-cherrypick-robot committed Oct 29, 2024
1 parent 02b255a commit ff3f23e
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 ff3f23e

Please sign in to comment.