Skip to content

Commit 8a2c75c

Browse files
committed
baremetal: pause workers
We will unpause them once the real control plane comes up.
1 parent 3a273f9 commit 8a2c75c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/asset/machines/baremetal/hosts.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ func Hosts(config *types.InstallConfig, machines []machineapi.Machine, userDataS
156156
// userDataSecret carries a reference to the master ignition file
157157
newHost.Spec.UserData = &corev1.SecretReference{Name: userDataSecret}
158158
numMasters++
159+
} else {
160+
// Pause workers until the real control plane is up.
161+
newHost.ObjectMeta.Annotations = map[string]string{
162+
"baremetalhost.metal3.io/paused": "",
163+
}
159164
}
160165

161166
settings.Hosts = append(settings.Hosts, newHost)

0 commit comments

Comments
 (0)