Skip to content

Commit 010cb06

Browse files
authored
quick fix for multi-host indexing (#4139)
1 parent 413b8ab commit 010cb06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ray-operator/controllers/ray/raycluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ func (r *RayClusterReconciler) reconcileMultiHostWorkerGroup(ctx context.Context
915915
for i := 0; i < replicasToCreate; i++ {
916916
replicaName := utils.GenerateRayWorkerReplicaGroupName(worker.GroupName)
917917
for j := 0; j < int(worker.NumOfHosts); j++ {
918-
if err := r.createWorkerPodWithIndex(ctx, *instance, *worker, replicaName, j); err != nil {
918+
if err := r.createWorkerPodWithIndex(ctx, *instance, *worker.DeepCopy(), replicaName, j); err != nil {
919919
return errstd.Join(utils.ErrFailedCreateWorkerPod, err)
920920
}
921921
}

0 commit comments

Comments
 (0)