// DefaultNumNodes is the number of nodes. If not specified, then number of nodes is auto-detected
DefaultNumNodes=-1
)
// TestContextType contains test settings and global state. Due to
// historic reasons, it is a mixture of items managed by the test
...
...
@@ -294,7 +299,7 @@ func RegisterClusterFlags() {
flag.StringVar(&cloudConfig.Cluster,"gke-cluster","","GKE name of cluster being used, if applicable")
flag.StringVar(&cloudConfig.NodeInstanceGroup,"node-instance-group","","Name of the managed instance group for nodes. Valid only for gce, gke or aws. If there is more than one group: comma separated list of groups.")
flag.StringVar(&cloudConfig.Network,"network","e2e","The cloud provider network for this e2e cluster.")
flag.IntVar(&cloudConfig.NumNodes,"num-nodes",-1,"Number of nodes in the cluster")
flag.IntVar(&cloudConfig.NumNodes,"num-nodes",DefaultNumNodes,fmt.Sprintf("Number of nodes in the cluster. If the default value of '%q' is used the number of schedulable nodes is auto-detected.",DefaultNumNodes))
flag.StringVar(&cloudConfig.ClusterIPRange,"cluster-ip-range","10.64.0.0/14","A CIDR notation IP range from which to assign IPs in the cluster.")
flag.StringVar(&cloudConfig.NodeTag,"node-tag","","Network tags used on node instances. Valid only for gce, gke")
flag.StringVar(&cloudConfig.MasterTag,"master-tag","","Network tags used on master instances. Valid only for gce, gke")