fix/clusterCreate: use StringSlice for k3s-server|agent-arg flag
- required due to StringArray incompatibility in Viper Fixes #482
This commit is contained in:
parent
b8d0872ba9
commit
e2a05c1f39
@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## v4.1.1
|
||||
|
||||
### Fixes
|
||||
|
||||
- fix: `--k3s-server-arg` and `--k3s-agent-arg` didn't work (Viper StringArray incompatibility) (#482)
|
||||
|
||||
## v4.1.0
|
||||
|
||||
### Highlights
|
||||
|
@ -323,10 +323,10 @@ func NewCmdClusterCreate() *cobra.Command {
|
||||
_ = cfgViper.BindPFlag("registries.config", cmd.Flags().Lookup("registry-config"))
|
||||
|
||||
/* k3s */
|
||||
cmd.Flags().StringArray("k3s-server-arg", nil, "Additional args passed to the `k3s server` command on server nodes (new flag per arg)")
|
||||
cmd.Flags().StringSlice("k3s-server-arg", nil, "Additional args passed to the `k3s server` command on server nodes (new flag per arg)")
|
||||
_ = cfgViper.BindPFlag("options.k3s.extraserverargs", cmd.Flags().Lookup("k3s-server-arg"))
|
||||
|
||||
cmd.Flags().StringArray("k3s-agent-arg", nil, "Additional args passed to the `k3s agent` command on agent nodes (new flag per arg)")
|
||||
cmd.Flags().StringSlice("k3s-agent-arg", nil, "Additional args passed to the `k3s agent` command on agent nodes (new flag per arg)")
|
||||
_ = cfgViper.BindPFlag("options.k3s.extraagentargs", cmd.Flags().Lookup("k3s-agent-arg"))
|
||||
|
||||
/* Subcommands */
|
||||
|
Loading…
Reference in New Issue
Block a user