Skip to content

Commit

Permalink
Merge pull request #3759 from vincepri/use-live-client-kcp
Browse files Browse the repository at this point in the history
🐛 KubeadmControlPlane should use a live client when listing machines
  • Loading branch information
k8s-ci-robot authored Oct 7, 2020
2 parents a7690b7 + 5876830 commit a82cfd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controlplane/kubeadm/controllers/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func (r *KubeadmControlPlaneReconciler) reconcile(ctx context.Context, cluster *
return ctrl.Result{}, err
}

controlPlaneMachines, err := r.managementCluster.GetMachinesForCluster(ctx, util.ObjectKey(cluster), machinefilters.ControlPlaneMachines(cluster.Name))
controlPlaneMachines, err := r.managementClusterUncached.GetMachinesForCluster(ctx, util.ObjectKey(cluster), machinefilters.ControlPlaneMachines(cluster.Name))
if err != nil {
logger.Error(err, "failed to retrieve control plane machines for cluster")
return ctrl.Result{}, err
Expand Down

0 comments on commit a82cfd9

Please sign in to comment.