Skip to content

Commit

Permalink
[RayCluster][Refactor] use RayClusterAllPodsAssociationOptions instead (
Browse files Browse the repository at this point in the history
#2756)

Signed-off-by: fscnick <[email protected]>
  • Loading branch information
fscnick authored Jan 15, 2025
1 parent 829aad5 commit ae880c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ray-operator/controllers/ray/raycluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1331,8 +1331,7 @@ func (r *RayClusterReconciler) calculateStatus(ctx context.Context, instance *ra
newInstance.Status.ObservedGeneration = newInstance.ObjectMeta.Generation

runtimePods := corev1.PodList{}
filterLabels := client.MatchingLabels{utils.RayClusterLabelKey: newInstance.Name}
if err := r.List(ctx, &runtimePods, client.InNamespace(newInstance.Namespace), filterLabels); err != nil {
if err := r.List(ctx, &runtimePods, common.RayClusterAllPodsAssociationOptions(newInstance).ToListOptions()...); err != nil {
return nil, err
}

Expand Down

0 comments on commit ae880c4

Please sign in to comment.