mirror of https://github.com/kubernetes/kops.git
Merge pull request #3987 from justinsb/default_subnets_on_create_ig
Automatic merge from submit-queue. Use default subnet when creating IG
This commit is contained in:
commit
fb7c42cb4d
|
@ -150,19 +150,15 @@ func RunCreateInstanceGroup(f *util.Factory, cmd *cobra.Command, args []string,
|
|||
}
|
||||
ig.Spec.Role = role
|
||||
|
||||
if len(options.Subnets) == 0 {
|
||||
return fmt.Errorf("cannot create instance group without subnets; specify --subnet flag(s)")
|
||||
}
|
||||
ig.Spec.Subnets = options.Subnets
|
||||
|
||||
ig, err = cloudup.PopulateInstanceGroupSpec(cluster, ig, channel)
|
||||
|
||||
ig.AddInstanceGroupNodeLabel()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ig.AddInstanceGroupNodeLabel()
|
||||
|
||||
if options.DryRun {
|
||||
|
||||
if options.Output == "" {
|
||||
|
|
Loading…
Reference in New Issue