cli: add --emptyvols to Up/Down

This commit is contained in:
Dusty Mabe 2016-10-27 18:18:16 -04:00
parent f67fca8be1
commit 7349dc9c9f
No known key found for this signature in database
GPG Key ID: 3302DBD73952E671
2 changed files with 14 additions and 0 deletions

View File

@ -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)

View File

@ -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",
},
},
}
}