Skip to content

Commit

Permalink
Merge pull request #10137 from schrej/patch-2
Browse files Browse the repository at this point in the history
🌱 be more explicit when skipping node deletion
  • Loading branch information
k8s-ci-robot committed Feb 12, 2024
2 parents 4a84453 + fd93865 commit cb42ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controllers/machine/machine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func (r *Reconciler) reconcileDelete(ctx context.Context, cluster *clusterv1.Clu
if m.Status.NodeRef != nil {
nodeName = m.Status.NodeRef.Name
}
log.Info("Deleting Kubernetes Node associated with Machine is not allowed", "Node", klog.KRef("", nodeName), "cause", err.Error())
log.Info("Skipping deletion of Kubernetes Node associated with Machine as it is not allowed", "Node", klog.KRef("", nodeName), "cause", err.Error())
default:
return ctrl.Result{}, errors.Wrapf(err, "failed to check if Kubernetes Node deletion is allowed")
}
Expand Down

0 comments on commit cb42ea3

Please sign in to comment.