Return reconcile.Result{}, not nil (#7521)

This commit is contained in:
Edward Oakes 2020-03-09 16:27:15 -07:00 committed by GitHub
parent 4ab80eafb9
commit 883ee4912d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ func (r *RayClusterReconciler) Reconcile(request reconcile.Request) (reconcile.R
log.Error(err, "Read request instance error!")
// Error reading the object - requeue the request.
if !apierrs.IsNotFound(err) {
return nil, err
return reconcile.Result{}, err
}
return reconcile.Result{}, nil
}