From 3e9ec72675b19592c475598852cf2549c6c8a2f3 Mon Sep 17 00:00:00 2001 From: Christian Schlotter Date: Fri, 18 Oct 2024 13:48:03 +0200 Subject: [PATCH] kcp: consider all machines for setting .status.version --- controlplane/kubeadm/internal/controllers/status.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controlplane/kubeadm/internal/controllers/status.go b/controlplane/kubeadm/internal/controllers/status.go index 7ebdbe6da49e..d24589047fb2 100644 --- a/controlplane/kubeadm/internal/controllers/status.go +++ b/controlplane/kubeadm/internal/controllers/status.go @@ -56,8 +56,7 @@ func (r *KubeadmControlPlaneReconciler) updateStatus(ctx context.Context, contro return nil } - machinesWithHealthyAPIServer := controlPlane.Machines.Filter(collections.HealthyAPIServer()) - lowestVersion := machinesWithHealthyAPIServer.LowestVersion() + lowestVersion := controlPlane.Machines.LowestVersion() if lowestVersion != nil { controlPlane.KCP.Status.Version = lowestVersion }