Skip to content

Commit

Permalink
fix: fix for deciding to wait for verification or skip to next promo (#…
Browse files Browse the repository at this point in the history
…2783)

Signed-off-by: Kent Rancourt <[email protected]>
  • Loading branch information
krancour authored Oct 19, 2024
1 parent bfb2d64 commit cf12780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/stages/stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ func (r *reconciler) syncPromotions(
if (status.Phase == kargoapi.StagePhaseSteady || status.Phase == kargoapi.StagePhaseVerifying) &&
status.FreightHistory.Current() != nil &&
len(status.FreightHistory.Current().VerificationHistory) == 0 &&
status.Health != nil && status.Health.Status != kargoapi.HealthStateUnhealthy {
(status.Health == nil || status.Health.Status != kargoapi.HealthStateUnhealthy) {
logger.WithValues().Debug("Stage is waiting for verification to start")
return status, nil
}
Expand Down

0 comments on commit cf12780

Please sign in to comment.