Skip to content

Commit

Permalink
kcp: consider all machines for setting .status.version
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Oct 18, 2024
1 parent 2ad269c commit 3e9ec72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controlplane/kubeadm/internal/controllers/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3e9ec72

Please sign in to comment.