Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package volcano
import (
"context"
"fmt"
"maps"
"strconv"

corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -204,11 +205,15 @@ func createPodGroup(owner metav1.Object, podGroupName string, size int32, totalR
ownerRef = *metav1.NewControllerRef(obj, rayv1.SchemeGroupVersion.WithKind("RayJob"))
}

annotations := make(map[string]string, len(owner.GetAnnotations()))
maps.Copy(annotations, owner.GetAnnotations())

podGroup := volcanoschedulingv1beta1.PodGroup{
ObjectMeta: metav1.ObjectMeta{
Namespace: owner.GetNamespace(),
Name: podGroupName,
OwnerReferences: []metav1.OwnerReference{ownerRef},
Annotations: annotations,
},
Spec: volcanoschedulingv1beta1.PodGroupSpec{
MinMember: size,
Expand Down
2 changes: 1 addition & 1 deletion ray-operator/controllers/ray/raycluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ func (r *RayClusterReconciler) reconcilePods(ctx context.Context, instance *rayv
}
}
}
logger.Info("reconcilePods", "found existing replica indices", "group", worker.GroupName, "indices", validReplicaIndices)
logger.Info("reconcilePods: found existing replica indices", "group", worker.GroupName, "indices", validReplicaIndices)
}
if diff > 0 {
// pods need to be added
Expand Down
Loading