Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silent error message if clowdenvironment does not exist, pre-push, requeue true #186

Merged
merged 17 commits into from
Oct 9, 2023
Prev Previous commit
Next Next commit
update logic for retrieving reservation object
  • Loading branch information
maknop committed Oct 9, 2023
commit 27d436122b7f4c8a15d127e1a0fbcd265b9e9c9a
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ func (r *NamespaceReservationReconciler) Reconcile(ctx context.Context, req ctrl
// Must have been deleted
return ctrl.Result{}, nil
}
r.log.Error(err, fmt.Sprintf("Reservation not found for namespace [%s]", req.NamespacedName.Namespace))
return ctrl.Result{}, err

r.log.Error(err, fmt.Sprintf("there was an issue retrieving the reservation object for namespace [%s]", req.NamespacedName.Namespace))
return ctrl.Result{Requeue: true}, err
}

if res.Status.Pool == "" {
Expand Down