Skip to content

Commit

Permalink
add rke2Path const and update data-dir flag default (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
briandowns authored Jun 22, 2020
1 parent 27112f7 commit 9c48ed2
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions pkg/cli/cmds/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,25 @@ import (
"github.com/urfave/cli"
)

const rke2Path = "/var/lib/rancher/rke2"

var (
config rke2.Config

k3sServerBase = mustCmdFromK3S(cmds.NewServerCommand(ServerRun), map[string]*K3SFlagOption{
"v": hide,
"vmodule": hide,
"log": hide,
"alsologtostderr": hide,
"bind-address": copy,
"https-listen-port": drop,
"advertise-address": copy,
"advertise-port": drop,
"tls-san": copy,
"data-dir": copy,
"v": hide,
"vmodule": hide,
"log": hide,
"alsologtostderr": hide,
"bind-address": copy,
"https-listen-port": drop,
"advertise-address": copy,
"advertise-port": drop,
"tls-san": copy,
"data-dir": {
Usage: "(data) Folder to hold state",
Default: rke2Path,
},
"disable-agent": hide,
"cluster-cidr": copy,
"service-cidr": copy,
Expand Down

0 comments on commit 9c48ed2

Please sign in to comment.