Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Jan 27, 2025
1 parent 5d109d8 commit 714c31f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/controllers/machine/machine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -803,10 +803,7 @@ func (r *Reconciler) drainNode(ctx context.Context, s *scope) (ctrl.Result, erro

remoteClient, err := r.ClusterCache.GetClient(ctx, util.ObjectKey(cluster))
if err != nil {
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
return ctrl.Result{}, errors.Wrapf(err, "failed to drain Node %s", nodeName)
}

node := &corev1.Node{}
Expand Down

0 comments on commit 714c31f

Please sign in to comment.