Skip to content

Commit 75b3d07

Browse files
Merge pull request #503 from alexander-demicev/statusversion
Set control plane version in status
2 parents c1ddfb4 + 4058bb4 commit 75b3d07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

controlplane/internal/controllers/rke2controlplane_controller.go

+5
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,11 @@ func (r *RKE2ControlPlaneReconciler) updateStatus(ctx context.Context, rcp *cont
426426

427427
conditions.MarkTrue(rcp, controlplanev1.AvailableCondition)
428428

429+
lowestVersion := controlPlane.Machines.LowestVersion()
430+
if lowestVersion != nil {
431+
controlPlane.RCP.Status.Version = lowestVersion
432+
}
433+
429434
return nil
430435
}
431436

0 commit comments

Comments
 (0)