1 2 3 4 5 6 7 8 | // If the machine will run a controller, then we need to open the // API port for it. var apiPort *int if args.InstanceConfig.Bootstrap != nil { apiPort = &args.InstanceConfig.Bootstrap.StateServingInfo.APIPort } else if args.InstanceConfig.Controller != nil { apiPort = &args.InstanceConfig.APIInfo.Ports()[0] } |