Unverified Commit 72d50b1f authored by LeiLei's avatar LeiLei Committed by GitHub

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>
parent 0809187c
......@@ -36,6 +36,11 @@ var (
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",
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