Skip to content

Commit 9d73e5b

Browse files
ekarlsosmira
authored andcommitted
fix: propagate ControlPlane label
This is so that harvester for lb and others that rely on this label has it. Signed-off-by: Andrey Smirnov <[email protected]> Signed-off-by: ekarlso <[email protected]>
1 parent 1b97a62 commit 9d73e5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

controllers/taloscontrolplane_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ func (r *TalosControlPlaneReconciler) bootControlPlane(ctx context.Context, clus
347347
Namespace: tcp.Namespace,
348348
OwnerRef: infraCloneOwner,
349349
ClusterName: cluster.Name,
350+
Labels: map[string]string{
351+
clusterv1.MachineControlPlaneLabel: "",
352+
},
350353
})
351354
if err != nil {
352355
conditions.MarkFalse(tcp, controlplanev1.MachinesCreatedCondition, controlplanev1.InfrastructureTemplateCloningFailedReason,

0 commit comments

Comments
 (0)