From 1cdbd8a3350126e3d757ff6ce3371d0236feb47e Mon Sep 17 00:00:00 2001 From: Angelos Kolaitis Date: Tue, 12 Sep 2023 16:36:29 +0300 Subject: [PATCH] fix external machine labels --- controllers/reconcile.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/reconcile.go b/controllers/reconcile.go index ed7d033..d4e00c0 100644 --- a/controllers/reconcile.go +++ b/controllers/reconcile.go @@ -351,6 +351,10 @@ func (r *MicroK8sControlPlaneReconciler) bootControlPlane(ctx context.Context, c Namespace: mcp.Namespace, OwnerRef: infraCloneOwner, ClusterName: cluster.Name, + Labels: map[string]string{ + clusterv1.ClusterLabelName: cluster.Name, + clusterv1.MachineControlPlaneLabelName: "", + }, }) if err != nil { conditions.MarkFalse(mcp, clusterv1beta1.MachinesCreatedCondition,