Skip to content

Commit

Permalink
removing the setProgressing and clearProgressing calls
Browse files Browse the repository at this point in the history
  • Loading branch information
safwank97 committed Oct 17, 2023
1 parent bf8b8d9 commit c78161c
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,10 @@ func (r *Reconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.

r.Log.Debug("running")
if !instance.Spec.OperatorFlags.GetSimpleBoolean(managed) {
r.SetProgressing(ctx, "Not MHC Managed for cluster maintenance purpose.")

err := r.dh.EnsureDeleted(ctx, "MachineHealthCheck", "openshift-machine-api", "aro-machinehealthcheck")
if err != nil {
r.Log.Error(err)
r.SetDegraded(ctx, err)
r.ClearProgressing(ctx)

return reconcile.Result{RequeueAfter: time.Hour}, err
}
Expand All @@ -85,7 +82,6 @@ func (r *Reconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.
if err != nil {
r.Log.Error(err)
r.SetDegraded(ctx, err)
r.ClearProgressing(ctx)

return reconcile.Result{RequeueAfter: time.Hour}, err
}
Expand Down

0 comments on commit c78161c

Please sign in to comment.