Skip to content

Commit

Permalink
Merge pull request #10 from adrianchiris/minor-sched-log-change
Browse files Browse the repository at this point in the history
minor logging change in scheduler controller
  • Loading branch information
adrianchiris authored Aug 21, 2024
2 parents 7ccc345 + bb730ee commit 72b91bb
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 72b91bb

Please sign in to comment.