mirror of
https://github.com/docker/compose.git
synced 2025-07-26 23:24:05 +02:00
Set existing vpc as default external network in the compose file
Signed-off-by: aiordache <anca.iordache@docker.com> Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
39a59ae55f
commit
95c88acfb4
@ -81,7 +81,6 @@ func ComposeCommand(clusteropts *clusterOptions) *cobra.Command {
|
|||||||
|
|
||||||
type upOptions struct {
|
type upOptions struct {
|
||||||
loadBalancerArn string
|
loadBalancerArn string
|
||||||
vpcID string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o upOptions) LoadBalancerArn() *string {
|
func (o upOptions) LoadBalancerArn() *string {
|
||||||
@ -90,12 +89,6 @@ func (o upOptions) LoadBalancerArn() *string {
|
|||||||
}
|
}
|
||||||
return &o.loadBalancerArn
|
return &o.loadBalancerArn
|
||||||
}
|
}
|
||||||
func (o upOptions) GetVPC() *string {
|
|
||||||
if o.vpcID == "" {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return &o.vpcID
|
|
||||||
}
|
|
||||||
|
|
||||||
func ConvertCommand(clusteropts *clusterOptions, projectOpts *compose.ProjectOptions) *cobra.Command {
|
func ConvertCommand(clusteropts *clusterOptions, projectOpts *compose.ProjectOptions) *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
@ -135,7 +128,6 @@ func UpCommand(clusteropts *clusterOptions, projectOpts *compose.ProjectOptions)
|
|||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
cmd.Flags().StringVar(&opts.loadBalancerArn, "load-balancer", "", "")
|
cmd.Flags().StringVar(&opts.loadBalancerArn, "load-balancer", "", "")
|
||||||
cmd.Flags().StringVar(&opts.vpcID, "vpc-id", "", "")
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user