Skip to content

Commit abf1852

Browse files
committed
minor updates
1 parent 015f228 commit abf1852

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/asset/agent/image/ignition.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ func (a *Ignition) Generate(dependencies asset.Parents) error {
178178
a.RendezvousIP = "127.0.0.1"
179179
// Reuse the existing cluster name.
180180
clusterName = clusterInfo.ClusterName
181-
// Fetch the required number of master and worker nodes.
181+
// Fetch the required number of master and worker nodes. Currently only adding workers
182+
// is supported, so forcing the expected number of masters to zero, and assuming implcitly
183+
// that all the hosts defined are workers.
182184
numMasters = 0
183185
numWorkers = len(addNodesConfig.Config.Hosts)
184186
// Enable add-nodes specific services
@@ -360,7 +362,7 @@ func addBootstrapScripts(config *igntypes.Config, releaseImage string) (err erro
360362

361363
func getTemplateData(name, pullSecret, releaseImageList, releaseImage,
362364
releaseImageMirror string, haveMirrorConfig bool, publicContainerRegistries string,
363-
numMasters int, numWorkers int,
365+
numMasters, numWorkers int,
364366
infraEnvID string,
365367
osImage *models.OsImage,
366368
proxy *v1beta1.Proxy,

0 commit comments

Comments
 (0)