Skip to content

Commit 829eab8

Browse files
committed
🌱 Avoid large number of connection error traces in kubeadm controller
1 parent 296cbc0 commit 829eab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controlplane/kubeadm/internal/controllers/controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func (r *KubeadmControlPlaneReconciler) Reconcile(ctx context.Context, req ctrl.
217217
if err := r.updateStatus(ctx, controlPlane); err != nil {
218218
var connFailure *internal.RemoteClusterConnectionError
219219
if errors.As(err, &connFailure) {
220-
log.Error(err, "Could not connect to workload cluster to fetch status")
220+
log.Info(fmt.Sprintf("Could not connect to workload cluster to fetch status: %s", err))
221221
} else {
222222
log.Error(err, "Failed to update KubeadmControlPlane status")
223223
reterr = kerrors.NewAggregate([]error{reterr, err})

0 commit comments

Comments
 (0)