Skip to content

Commit 72d50b1

Browse files
Add --data-dir to the k3s certificate rotate-ca cli (#7791)
Need to add a cli flag for this. Also, should probably have config file loading support for the certificate commands. Signed-off-by: leilei.zhai <[email protected]>
1 parent 0809187 commit 72d50b1

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)