Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
evalaiyc98 committed Apr 7, 2024
1 parent 45b7c35 commit 3d87528
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ray-operator/controllers/ray/common/association.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func RayClusterWorkerPodsAssociationOptions(instance *rayv1.RayCluster) Associat
}
}

func RayClusterRedisPodAssociationOptions(instance *rayv1.RayCluster) AssociationOptions {
func RayClusterRedisCleanupPodAssociationOptions(instance *rayv1.RayCluster) AssociationOptions {
return AssociationOptions{
client.InNamespace(instance.Namespace),
client.MatchingLabels{
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 @@ -249,7 +249,7 @@ func (r *RayClusterReconciler) rayClusterReconcile(ctx context.Context, request

// We can start the Redis cleanup process now because the head Pod has been terminated.
redisCleanupJobs := batchv1.JobList{}
if err := r.List(ctx, &redisCleanupJobs, common.RayClusterRedisPodAssociationOptions(instance).ToListOptions()...); err != nil {
if err := r.List(ctx, &redisCleanupJobs, common.RayClusterRedisCleanupPodAssociationOptions(instance).ToListOptions()...); err != nil {
return ctrl.Result{RequeueAfter: DefaultRequeueDuration}, err
}

Expand Down

0 comments on commit 3d87528

Please sign in to comment.