From b1e7556f6fe3c50dbdad34a5fde507a2c37b153d Mon Sep 17 00:00:00 2001 From: Peter Hunt Date: Thu, 21 Nov 2024 13:20:59 -0500 Subject: [PATCH] hostedcluster: bubble up OldestKubeletVersion from HCP Signed-off-by: Peter Hunt --- .../controllers/hostedcluster/hostedcluster_controller.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hypershift-operator/controllers/hostedcluster/hostedcluster_controller.go b/hypershift-operator/controllers/hostedcluster/hostedcluster_controller.go index 5ecd69cfa2..21f55cb558 100644 --- a/hypershift-operator/controllers/hostedcluster/hostedcluster_controller.go +++ b/hypershift-operator/controllers/hostedcluster/hostedcluster_controller.go @@ -764,9 +764,12 @@ func (r *HostedClusterReconciler) reconcile(ctx context.Context, req ctrl.Reques } } - // Copy the platform status from the hostedcontrolplane if hcp != nil { + // Copy the platform status from the hostedcontrolplane hcluster.Status.Platform = hcp.Status.Platform + + // Copy the oldestKubeletVersion status from the hostedcontrolplane + hcluster.Status.OldestKubeletVersion = hcp.Status.OldestKubeletVersion } // Copy the AWSDefaultSecurityGroupCreated condition from the hostedcontrolplane