Merge pull request #46 from andyz-dev/volume

[Enhancement] Allow the volume argument to be specified multiple times
This commit is contained in:
Andy Zhou 2019-05-15 09:44:23 -07:00 committed by GitHub
commit dbc93f6818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -117,7 +117,7 @@ func CreateCluster(c *cli.Context) error {
k3sServerArgs,
env,
c.String("name"),
strings.Split(c.String("volume"), ","),
c.StringSlice("volume"),
portmap,
)
if err != nil {
@ -184,7 +184,7 @@ func CreateCluster(c *cli.Context) error {
k3sWorkerArgs,
env,
c.String("name"),
strings.Split(c.String("volume"), ","),
c.StringSlice("volume"),
i,
c.String("api-port"),
portmap,

View File

@ -56,9 +56,9 @@ func main() {
Value: defaultK3sClusterName,
Usage: "Set a name for the cluster",
},
cli.StringFlag{
cli.StringSliceFlag{
Name: "volume, v",
Usage: "Mount one or more volumes into every node of the cluster (Docker notation: `source:destination[,source:destination]`)",
Usage: "Mount one or more volumes into every node of the cluster (Docker notation: `source:destination`)",
},
cli.StringSliceFlag{
Name: "publish, add-port",