Skip to content

Commit 85ce4d7

Browse files
Add a k3s data directory location specified by the cli
Need to add a cli flag for this. Also, should probably have config file loading support for the certificate commands.
1 parent fe9604c commit 85ce4d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/cli/cmds/certs.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ var (
3535
Value: "https://127.0.0.1:6443",
3636
Destination: &ServerConfig.ServerURL,
3737
},
38+
cli.StringFlag{
39+
Name: "data-dir,d",
40+
Usage: "(data) Folder to hold state default /var/lib/rancher/" + version.Program + " or ${HOME}/.rancher/" + version.Program + " if not root",
41+
Destination: &ServerConfig.DataDir,
42+
},
3843
cli.StringFlag{
3944
Name: "path",
4045
Usage: "Path to directory containing new CA certificates",

0 commit comments

Comments
 (0)