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"),
|
InputFile: c.GlobalString("file"),
|
||||||
Replicas: 1,
|
Replicas: 1,
|
||||||
Provider: strings.ToLower(c.GlobalString("provider")),
|
Provider: strings.ToLower(c.GlobalString("provider")),
|
||||||
|
EmptyVols: c.BoolT("emptyvols"),
|
||||||
}
|
}
|
||||||
validateFlags(c, &opt)
|
validateFlags(c, &opt)
|
||||||
validateControllers(&opt)
|
validateControllers(&opt)
|
||||||
@ -203,6 +204,7 @@ func Down(c *cli.Context) {
|
|||||||
InputFile: c.GlobalString("file"),
|
InputFile: c.GlobalString("file"),
|
||||||
Replicas: 1,
|
Replicas: 1,
|
||||||
Provider: strings.ToLower(c.GlobalString("provider")),
|
Provider: strings.ToLower(c.GlobalString("provider")),
|
||||||
|
EmptyVols: c.BoolT("emptyvols"),
|
||||||
}
|
}
|
||||||
validateFlags(c, &opt)
|
validateFlags(c, &opt)
|
||||||
validateControllers(&opt)
|
validateControllers(&opt)
|
||||||
|
|||||||
@ -160,6 +160,12 @@ func UpCommand() cli.Command {
|
|||||||
Action: func(c *cli.Context) {
|
Action: func(c *cli.Context) {
|
||||||
app.Up(c)
|
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) {
|
Action: func(c *cli.Context) {
|
||||||
app.Down(c)
|
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