Skip to content

Commit

Permalink
fix: workloadspread validation message (#1553)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Vorona <alex@vorona.com.ua>
  • Loading branch information
voron authored Apr 1, 2024
1 parent 1f7b691 commit 9e01c36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func validateWorkloadSpreadSpec(h *WorkloadSpreadCreateUpdateHandler, obj *appsv

if len(spec.Subsets) > 1 && spec.Subsets[len(spec.Subsets)-1].MaxReplicas != nil {
allErrs = append(allErrs, field.Invalid(fldPath.Child("scheduleStrategy").Child("adaptive"),
spec.ScheduleStrategy.Adaptive.RescheduleCriticalSeconds, "the last subset must be not specified when using adaptive scheduleStrategy"))
spec.ScheduleStrategy.Adaptive.RescheduleCriticalSeconds, "the last subset's maxReplicas must be not specified when using adaptive scheduleStrategy"))
}

allowedMaxSeconds := int32(math.MaxInt32)
Expand Down

0 comments on commit 9e01c36

Please sign in to comment.