Skip to content

Commit 06b21f8

Browse files
committed
fix: use 'control-plane' Kubernetes node label
Talos was labeling control plane nodes with both `control-plane` and `master` labels since Talos 0.8, so it should be safe to do that change. Talos 1.2.0 is supposed to drop legacy `master` label, so we need to make sure CACCPT is ready. Signed-off-by: Andrey Smirnov <[email protected]> (cherry picked from commit 6fdde72)
1 parent 075800e commit 06b21f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/taloscontrolplane_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ func (r *TalosControlPlaneReconciler) updateStatus(ctx context.Context, tcp *con
552552
}
553553

554554
nodeSelector := labels.NewSelector()
555-
req, err := labels.NewRequirement(constants.LabelNodeRoleMaster, selection.Exists, []string{})
555+
req, err := labels.NewRequirement(constants.LabelNodeRoleControlPlane, selection.Exists, []string{})
556556
if err != nil {
557557
return err
558558
}

0 commit comments

Comments
 (0)