Skip to content

Commit

Permalink
updating equivalentWorkload
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentefb committed Mar 18, 2024
1 parent 0e2a8af commit c828952
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/jobframework/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,7 @@ func equivalentToWorkload(ctx context.Context, c client.Client, job GenericJob,

if runningPodSets := expectedRunningPodSets(ctx, c, wl); runningPodSets != nil {
jobPodSetCount := job.PodSets()
workloadPodSetCount := wl.Spec.PodSets[1].Count
if equality.ComparePodSetSlices(jobPodSets, runningPodSets) || (features.Enabled(features.DynamicallySizedJobs) && job.GVK().Kind == "RayCluster" && jobPodSetCount[1].Count < workloadPodSetCount) {
if equality.ComparePodSetSlices(jobPodSets, runningPodSets) || (features.Enabled(features.DynamicallySizedJobs) && job.GVK().Kind == "RayCluster" && jobPodSetCount[1].Count < wl.Spec.PodSets[1].Count) {
return true
}
// If the workload is admitted but the job is suspended, do the check
Expand Down

0 comments on commit c828952

Please sign in to comment.