Skip to content

Commit 2fa91f1

Browse files
davidwtfQianChenglong
authored andcommitted
fix: mark master
Signed-off-by: Tengfei Wang <[email protected]>
1 parent 527636f commit 2fa91f1

File tree

1 file changed

+2
-1
lines changed
  • pkg/platform/provider/baremetal/cluster

1 file changed

+2
-1
lines changed

pkg/platform/provider/baremetal/cluster/create.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,9 @@ func (p *Provider) EnsureMarkControlPlane(c *Cluster) error {
709709
for _, machine := range c.Spec.Machines {
710710
if machine.Labels == nil {
711711
machine.Labels = make(map[string]string)
712-
machine.Labels[constants.LabelNodeRoleMaster] = ""
713712
}
713+
machine.Labels[constants.LabelNodeRoleMaster] = ""
714+
714715
if !c.Spec.Features.EnableMasterSchedule {
715716
taint := corev1.Taint{
716717
Key: constants.LabelNodeRoleMaster,

0 commit comments

Comments
 (0)