Remove tautology
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
parent
cf5702068b
commit
ee651bf8b7
|
|
@ -283,16 +283,11 @@ func (r *AtomicRelease) Reconcile(ctx context.Context, req *Request) error {
|
|||
conditions.MarkReconciling(req.Object, meta.ProgressingWithRetryReason, "%s", conditions.GetMessage(req.Object, meta.ReadyCondition))
|
||||
return ErrMustRequeue
|
||||
}
|
||||
// Check if retries have exhausted after remediation for early
|
||||
// stall condition detection.
|
||||
if remediation != nil && remediation.RetriesExhausted(req.Object) {
|
||||
conditions.MarkStalled(req.Object, "RetriesExceeded", "Failed to %s after %d attempt(s)",
|
||||
req.Object.Status.LastAttemptedReleaseAction, req.Object.GetActiveRemediation().GetFailureCount(req.Object))
|
||||
return ErrExceededMaxRetries
|
||||
}
|
||||
|
||||
conditions.Delete(req.Object, meta.ReconcilingCondition)
|
||||
return nil
|
||||
// Retries have exhausted after remediation for early stall condition detection.
|
||||
conditions.MarkStalled(req.Object, "RetriesExceeded", "Failed to %s after %d attempt(s)",
|
||||
req.Object.Status.LastAttemptedReleaseAction, req.Object.GetActiveRemediation().GetFailureCount(req.Object))
|
||||
return ErrExceededMaxRetries
|
||||
}
|
||||
|
||||
// Append the type to the set of action types we have performed.
|
||||
|
|
|
|||
Loading…
Reference in New Issue