Skip to content

Commit

Permalink
fix --k3s-arg not applied from CLI due to wrong viper instance
Browse files Browse the repository at this point in the history
- fixes #747
  • Loading branch information
iwilltry42 committed Sep 20, 2021
1 parent acf9e65 commit f801e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cluster/clusterCreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func NewCmdClusterCreate() *cobra.Command {

/* 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\"")
_ = cfgViper.BindPFlag("cli.k3sargs", cmd.Flags().Lookup("k3s-arg"))
_ = ppViper.BindPFlag("cli.k3sargs", cmd.Flags().Lookup("k3s-arg"))

/******************
* "Normal" Flags *
Expand Down

0 comments on commit f801e46

Please sign in to comment.