From ba68f93df8df3dcbba33a450a2acd71cc245075f Mon Sep 17 00:00:00 2001 From: Danil-Grigorev Date: Tue, 14 Jul 2020 06:48:30 +0200 Subject: [PATCH] Show error message when fail to get clusterId from infrastructure Adds missing infrastructure log error message, causing non-representative machine reconcile error loops, when there is an re-occuring error with client.Get on the infrastructure resource. --- pkg/controller/machine/controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/machine/controller.go b/pkg/controller/machine/controller.go index 22b4768685..4f73f93794 100644 --- a/pkg/controller/machine/controller.go +++ b/pkg/controller/machine/controller.go @@ -180,6 +180,7 @@ func (r *ReconcileMachine) Reconcile(request reconcile.Request) (reconcile.Resul // Add clusterID label if err := r.setClusterIDLabel(ctx, m); err != nil { + klog.Errorf("%v: failed to set ClusterID for machine: %v", machineName, err) return reconcile.Result{}, err }