-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 clustercache: do not use RequeueAfter when hitting ErrClusterNotConnected #11736
base: main
Are you sure you want to change the base?
🌱 clustercache: do not use RequeueAfter when hitting ErrClusterNotConnected #11736
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold To do some scale test on-top |
/hold cancel Scale tests look good (500 clusters). No increased provisioning times. |
…cted and return error instead
33d78e1
to
5d109d8
Compare
/test pull-cluster-api-e2e-main |
log.V(5).Info("Waiting for Cluster connection to come up to drain the Node") | ||
s.deletingReason = clusterv1.MachineDeletingDrainingNodeV1Beta2Reason | ||
s.deletingMessage = "Waiting for Cluster connection to come up to drain the Node" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.V(5).Info("Waiting for Cluster connection to come up to drain the Node") | |
s.deletingReason = clusterv1.MachineDeletingDrainingNodeV1Beta2Reason | |
s.deletingMessage = "Waiting for Cluster connection to come up to drain the Node" |
- error shows up anyway because we propagate it up
- deletingReason / deletingMessage are overwritten one level higher
log.V(5).Info("Waiting for Cluster connection to come up to drain the Node") | ||
s.deletingReason = clusterv1.MachineDeletingDrainingNodeV1Beta2Reason | ||
s.deletingMessage = "Waiting for Cluster connection to come up to drain the Node" | ||
return ctrl.Result{}, err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return ctrl.Result{}, err | |
return ctrl.Result{}, errors.Wrapf(err, "failed to drain Node %s", nodeName) |
What this PR does / why we need it:
Follow-up to: #11272
Clustercache emits events once the connection is back, so no need to use
RequeueAfter
.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
/area clustercache