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>
(cherry picked from commit 72d50b1f7c)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/7916/head
LeiLei 2023-07-04 00:30:04 +08:00 committed by Brad Davidson
parent 70f82496fc
commit 562f97cda7
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,11 @@ var (
Value: "https://127.0.0.1:6443",
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",