fix --k3s-arg not applied from CLI due to wrong viper instance
- fixes #747
This commit is contained in:
parent
acf9e65ef9
commit
f801e46e9e
@ -270,7 +270,7 @@ func NewCmdClusterCreate() *cobra.Command {
|
|||||||
|
|
||||||
/* k3s */
|
/* k3s */
|
||||||
cmd.Flags().StringArray("k3s-arg", nil, "Additional args passed to k3s command (Format: `ARG@NODEFILTER[;@NODEFILTER]`)\n - Example: `k3d cluster create --k3s-arg \"--disable=traefik@server:0\"")
|
cmd.Flags().StringArray("k3s-arg", nil, "Additional args passed to k3s command (Format: `ARG@NODEFILTER[;@NODEFILTER]`)\n - Example: `k3d cluster create --k3s-arg \"--disable=traefik@server:0\"")
|
||||||
_ = cfgViper.BindPFlag("cli.k3sargs", cmd.Flags().Lookup("k3s-arg"))
|
_ = ppViper.BindPFlag("cli.k3sargs", cmd.Flags().Lookup("k3s-arg"))
|
||||||
|
|
||||||
/******************
|
/******************
|
||||||
* "Normal" Flags *
|
* "Normal" Flags *
|
||||||
|
Loading…
Reference in New Issue
Block a user