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 <leilei.zhai@qingteng.cn>
pull/7848/head
LeiLei 1 year ago committed by GitHub
parent 0809187cff
commit 72d50b1f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,6 +35,11 @@ var (
Value: "https://127.0.0.1:6443", Value: "https://127.0.0.1:6443",
Destination: &ServerConfig.ServerURL, 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{ cli.StringFlag{
Name: "path", Name: "path",
Usage: "Path to directory containing new CA certificates", Usage: "Path to directory containing new CA certificates",

Loading…
Cancel
Save