Skip to content

Commit

Permalink
Add a k3s data directory location specified by the cli
Browse files Browse the repository at this point in the history
Need to add a cli flag for this. Also, should probably have config file loading support for the certificate commands.
  • Loading branch information
zhaileilei123 authored Jun 16, 2023
1 parent fe9604c commit 85ce4d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cli/cmds/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ var (
Value: "https://127.0.0.1:6443",
Destination: &ServerConfig.ServerURL,
},
cli.StringFlag{
Name: "data-dir,d",
Usage: "(data) Folder to hold state default /var/lib/rancher/" + version.Program + " or ${HOME}/.rancher/" + version.Program + " if not root",
Destination: &ServerConfig.DataDir,
},
cli.StringFlag{
Name: "path",
Usage: "Path to directory containing new CA certificates",
Expand Down

0 comments on commit 85ce4d7

Please sign in to comment.