Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentefb committed Apr 10, 2024
1 parent 6601a49 commit b8255b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/controller/jobs/raycluster/raycluster_controller.go
Expand Up @@ -95,9 +95,7 @@ func (j *RayCluster) IsDownsizable(wl *kueue.Workload) bool {
// JobHasDownsize checks whether a job has a scale down
func JobHasDownsize(podSets []kueue.PodSet, wl *kueue.Workload) bool {
for i := 1; i < len(podSets); i++ {
jobPodSetCount := podSets[i].Count
workloadPodSetCount := wl.Spec.PodSets[i].Count
if workloadPodSetCount > jobPodSetCount {
if wl.Spec.PodSets[i].Count > podSets[i].Count {
return true
}
}
Expand Down

0 comments on commit b8255b9

Please sign in to comment.