Skip to content

Commit

Permalink
reconcile: improve wording Stalled condition
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <[email protected]>
  • Loading branch information
hiddeco committed Nov 22, 2023
1 parent 0535ae1 commit 3ce6e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/reconcile/atomic_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ func (r *AtomicRelease) Reconcile(ctx context.Context, req *Request) error {
log.V(logger.DebugLevel).Info("determining next Helm action based on current state")
if next, err = r.actionForState(ctx, req, state); err != nil {
if errors.Is(err, ErrExceededMaxRetries) {
conditions.MarkStalled(req.Object, "RetriesExceeded", "Attempted %d times but failed to %s",
req.Object.GetActiveRemediation().GetFailureCount(req.Object), req.Object.Status.LastAttemptedReleaseAction)
conditions.MarkStalled(req.Object, "RetriesExceeded", "Failed to %s after %d attempt(s)",
req.Object.Status.LastAttemptedReleaseAction, req.Object.GetActiveRemediation().GetFailureCount(req.Object))
}
return err
}
Expand Down

0 comments on commit 3ce6e8d

Please sign in to comment.