Commit 562f97cd authored by LeiLei's avatar LeiLei Committed by Brad Davidson

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: 's avatarleilei.zhai <leilei.zhai@qingteng.cn> (cherry picked from commit 72d50b1f) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent 70f82496
...@@ -36,6 +36,11 @@ var ( ...@@ -36,6 +36,11 @@ var (
Destination: &ServerConfig.ServerURL, Destination: &ServerConfig.ServerURL,
}, },
cli.StringFlag{ 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", Name: "path",
Usage: "Path to directory containing new CA certificates", Usage: "Path to directory containing new CA certificates",
Destination: &CertRotateCAConfig.CACertPath, Destination: &CertRotateCAConfig.CACertPath,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment