Skip to content

Commit

Permalink
Merge pull request #503 from alexander-demicev/statusversion
Browse files Browse the repository at this point in the history
Set control plane version in status
  • Loading branch information
Danil-Grigorev authored Nov 27, 2024
2 parents c1ddfb4 + 4058bb4 commit 75b3d07
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,11 @@ func (r *RKE2ControlPlaneReconciler) updateStatus(ctx context.Context, rcp *cont

conditions.MarkTrue(rcp, controlplanev1.AvailableCondition)

lowestVersion := controlPlane.Machines.LowestVersion()
if lowestVersion != nil {
controlPlane.RCP.Status.Version = lowestVersion
}

return nil
}

Expand Down

0 comments on commit 75b3d07

Please sign in to comment.