Skip to content

Commit

Permalink
minor logging change in scheduler controller
Browse files Browse the repository at this point in the history
Signed-off-by: adrianc <[email protected]>
  • Loading branch information
adrianchiris committed Aug 18, 2024
1 parent 7ccc345 commit bb730ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/controller/nodemaintenancescheduler_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ func (r *NodeMaintenanceSchedulerReconciler) Reconcile(ctx context.Context, req
return ctrl.Result{}, err
}

if schedCtx.AvailableSlots == 0 {
r.Log.Info("no slots available for maintenance scheduling")
if len(schedCtx.CandidateMaintenance) == 0 {
r.Log.Info("no candidate NodeMaintenance requests")
return schedulerResyncResult, nil
}

Expand All @@ -168,8 +168,8 @@ func (r *NodeMaintenanceSchedulerReconciler) Reconcile(ctx context.Context, req
return schedulerResyncResult, nil
}

if len(schedCtx.CandidateMaintenance) == 0 {
r.Log.Info("no candidate NodeMaintenance requests")
if schedCtx.AvailableSlots == 0 {
r.Log.Info("no slots available for maintenance scheduling")
return schedulerResyncResult, nil
}

Expand Down

0 comments on commit bb730ee

Please sign in to comment.