Skip to content

Commit f0bdb22

Browse files
committed
Renames
1 parent dc7b462 commit f0bdb22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

slice/internal/controller/workload_controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,8 @@ func (r *WorkloadReconciler) createSlices(ctx context.Context, wl *kueue.Workloa
599599
}
600600

601601
if err := errors.Join(
602-
r.findConflictingPartitionIDs(ctx, existingSlicesByName, slicesToCreate),
603-
r.verifyTheNumberOfPartitions(ctx, slicesToCreate)); err != nil {
602+
r.validatePartitionConflicts(ctx, existingSlicesByName, slicesToCreate),
603+
r.validatePartitionCount(ctx, slicesToCreate)); err != nil {
604604
log := ctrl.LoggerFrom(ctx)
605605
log.V(3).Info("Slice validation failed, not creating Slices, evicting the workload", "error", err)
606606
ac.State = kueue.CheckStateRetry
@@ -636,7 +636,7 @@ func (r *WorkloadReconciler) createSlices(ctx context.Context, wl *kueue.Workloa
636636
return createdSlices, nil
637637
}
638638

639-
func (r *WorkloadReconciler) findConflictingPartitionIDs(
639+
func (r *WorkloadReconciler) validatePartitionConflicts(
640640
ctx context.Context,
641641
existingSlicesByName map[string]*v1beta1.Slice,
642642
slicesToCreate []*v1beta1.Slice,
@@ -664,7 +664,7 @@ func (r *WorkloadReconciler) findConflictingPartitionIDs(
664664
return nil
665665
}
666666

667-
func (r *WorkloadReconciler) verifyTheNumberOfPartitions(
667+
func (r *WorkloadReconciler) validatePartitionCount(
668668
ctx context.Context,
669669
slicesToCreate []*v1beta1.Slice,
670670
) error {

0 commit comments

Comments
 (0)