Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Make master/worker be numbered rather than random-string for name. #305

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,9 @@ func (c *Cluster) Start(numberNodes int, cniPluginDir string, cniPlugin string)

var machineNameSuffix string
if nodeNumber == 0 {
machineNameSuffix = fmt.Sprintf("master-%s", randString(6))
machineNameSuffix = fmt.Sprintf("master-%d", nodeNumber)
} else {
machineNameSuffix = fmt.Sprintf("worker-%s", randString(6))
machineNameSuffix = fmt.Sprintf("worker-%d", nodeNumber)
}
machineName := fmt.Sprintf("kube-spawn-%s-%s", c.name, machineNameSuffix)

Expand Down