upup: allow master-size to be specified through CLI

This commit is contained in:
Justin Santa Barbara 2016-06-11 21:27:31 -04:00
parent 53e4875a5b
commit 7006746be4
1 changed files with 7 additions and 0 deletions

View File

@ -57,6 +57,9 @@ func main() {
nodeSize := ""
flag.StringVar(&nodeSize, "node-size", nodeSize, "Set instance size for nodes")
masterSize := ""
flag.StringVar(&masterSize, "master-size", masterSize, "Set instance size for masters")
nodeCount := 0
flag.IntVar(&nodeCount, "node-count", nodeCount, "Set the number of nodes")
@ -79,6 +82,10 @@ func main() {
config.NodeCount = nodeCount
}
if masterSize != "" {
config.MasterMachineType = masterSize
}
if dnsZone != "" {
config.DNSZone = dnsZone
}