forked from LaconicNetwork/kompose
cli: add --emptyvols to Up/Down
This commit is contained in:
parent
f67fca8be1
commit
7349dc9c9f
@ -172,6 +172,7 @@ func Up(c *cli.Context) {
|
||||
InputFile: c.GlobalString("file"),
|
||||
Replicas: 1,
|
||||
Provider: strings.ToLower(c.GlobalString("provider")),
|
||||
EmptyVols: c.BoolT("emptyvols"),
|
||||
}
|
||||
validateFlags(c, &opt)
|
||||
validateControllers(&opt)
|
||||
@ -203,6 +204,7 @@ func Down(c *cli.Context) {
|
||||
InputFile: c.GlobalString("file"),
|
||||
Replicas: 1,
|
||||
Provider: strings.ToLower(c.GlobalString("provider")),
|
||||
EmptyVols: c.BoolT("emptyvols"),
|
||||
}
|
||||
validateFlags(c, &opt)
|
||||
validateControllers(&opt)
|
||||
|
||||
@ -160,6 +160,12 @@ func UpCommand() cli.Command {
|
||||
Action: func(c *cli.Context) {
|
||||
app.Up(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "emptyvols",
|
||||
Usage: "Use Empty Volumes. Don't generate PVCs",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@ -171,6 +177,12 @@ func DownCommand() cli.Command {
|
||||
Action: func(c *cli.Context) {
|
||||
app.Down(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "emptyvols",
|
||||
Usage: "Use Empty Volumes. Don't generate PVCs",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user