Skip to content

Commit

Permalink
Merge pull request #5703 from Daimler/tobiasgiese/fix-kubeadm-cp-cont…
Browse files Browse the repository at this point in the history
…roller-log

🐛 Log only machine name instead of object
  • Loading branch information
k8s-ci-robot authored Nov 18, 2021
2 parents 32ccb7a + 233b5d2 commit aafa086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controlplane/kubeadm/controllers/scale.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (r *KubeadmControlPlaneReconciler) scaleDownControlPlane(
return ctrl.Result{}, err
}

logger = logger.WithValues("machine", machineToDelete)
logger = logger.WithValues("machine", machineToDelete.Name)
if err := r.Client.Delete(ctx, machineToDelete); err != nil && !apierrors.IsNotFound(err) {
logger.Error(err, "Failed to delete control plane machine")
r.recorder.Eventf(kcp, corev1.EventTypeWarning, "FailedScaleDown",
Expand Down

0 comments on commit aafa086

Please sign in to comment.