Skip to content

Commit

Permalink
Update CLI to sync with k3s
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
  • Loading branch information
brandond committed Apr 11, 2024
1 parent 1901b5c commit e812a76
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkg/cli/cmds/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,20 @@ func NewCertCommand() cli.Command {
Default: rke2Path,
},
},
"check": {
"alsologtostderr": copyFlag,
"config": copyFlag,
"debug": copyFlag,
"log": copyFlag,
"service": copyFlag,
"data-dir": {
Usage: "(data) Folder to hold state",
Default: rke2Path,
},
},
}

command := cmds.NewCertCommands(Rotate, cert.RotateCA)
command := cmds.NewCertCommands(Rotate, cert.RotateCA, cert.Check)
command.Usage = "Manage RKE2 certificates"
configfilearg.DefaultParser.ValidFlags[command.Name] = command.Flags
for i, subcommand := range command.Subcommands {
Expand Down
4 changes: 4 additions & 0 deletions pkg/cli/cmds/etcd_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ func NewEtcdSnapshotCommand() cli.Command {
Usage: "(data) Folder to hold state",
Default: rke2Path,
},
"server": {
Default: "https://127.0.0.1:9345",
},
"token": copyFlag,
"name": copyFlag,
"dir": copyFlag,
"snapshot-compress": copyFlag,
Expand Down

0 comments on commit e812a76

Please sign in to comment.