Skip to content

Commit d59cbd8

Browse files
authored
Fix rayClusterScaleExpectation deletion to use request object when instance is nil (#4039)
Signed-off-by: GreatHato <[email protected]>
1 parent 3d5c9e6 commit d59cbd8

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
@@ -123,7 +123,7 @@ func (r *RayClusterReconciler) Reconcile(ctx context.Context, request ctrl.Reque
123123
// No match found
124124
if errors.IsNotFound(err) {
125125
// Clear all related expectations
126-
r.rayClusterScaleExpectation.Delete(instance.Name, instance.Namespace)
126+
r.rayClusterScaleExpectation.Delete(request.Name, request.Namespace)
127127
cleanUpRayClusterMetrics(r.options.RayClusterMetricsManager, request.Name, request.Namespace)
128128
} else {
129129
logger.Error(err, "Read request instance error!")

0 commit comments

Comments
 (0)