Skip to content

Commit

Permalink
fix(native): add flags --master-extra-args and --worker-extra-args
Browse files Browse the repository at this point in the history
Signed-off-by: NewGr8Player <273221594@qq.com>
  • Loading branch information
NewGr8Player authored and rancher-sy-bot committed Oct 15, 2020
1 parent 12a1f80 commit 9b2930c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/providers/native/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,18 @@ func (p *Native) sharedFlags() []types.Flag {
Usage: "Used to specify the release channel of k3s. e.g.(stable, latest, or i.e. v1.18)",
Required: true,
},
{
Name: "master-extra-args",
P: &p.MasterExtraArgs,
V: p.MasterExtraArgs,
Usage: "Master extra arguments for k3s installer, wrapped in quotes. e.g.(--master-extra-args '--no-deploy metrics-server')",
},
{
Name: "worker-extra-args",
P: &p.WorkerExtraArgs,
V: p.WorkerExtraArgs,
Usage: "Worker extra arguments for k3s installer, wrapped in quotes. e.g.(--worker-extra-args '--node-taint key=value:NoExecute')",
},
{
Name: "registries",
P: &p.Registries,
Expand Down

0 comments on commit 9b2930c

Please sign in to comment.