Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
Signed-off-by: 刘硕 <[email protected]>
  • Loading branch information
刘硕 committed Sep 15, 2023
1 parent a46e941 commit 7494240
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/workloadspread/workloadspread_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ func (r *ReconcileWorkloadSpread) calculateWorkloadSpreadStatus(ws *appsv1alpha1
var rescheduleCriticalSeconds int32
if ws.Spec.ScheduleStrategy.Type == appsv1alpha1.AdaptiveWorkloadSpreadScheduleStrategyType &&
ws.Spec.ScheduleStrategy.Adaptive != nil &&
ws.Spec.ScheduleStrategy.Adaptive.DisableSimulationSchedule == false &&
ws.Spec.ScheduleStrategy.Adaptive.RescheduleCriticalSeconds != nil {
rescheduleCriticalSeconds = *ws.Spec.ScheduleStrategy.Adaptive.RescheduleCriticalSeconds
}
Expand Down

0 comments on commit 7494240

Please sign in to comment.