Skip to content

Commit

Permalink
Sync cli 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 Jul 15, 2024
1 parent c6bfdfb commit 5073efd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
16 changes: 9 additions & 7 deletions pkg/cli/cmds/etcd_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,26 @@ func NewEtcdSnapshotCommand() cli.Command {
Usage: "(data) Folder to hold state",
Default: rke2Path,
},
"server": {
"etcd-server": {
Default: "https://127.0.0.1:9345",
},
"token": copyFlag,
"etcd-token": copyFlag,
"name": copyFlag,
"dir": copyFlag,
"snapshot-compress": copyFlag,
"snapshot-retention": copyFlag,
"s3": copyFlag,
"s3-endpoint": copyFlag,
"s3-endpoint-ca": copyFlag,
"s3-skip-ssl-verify": copyFlag,
"s3-access-key": copyFlag,
"s3-secret-key": copyFlag,
"s3-bucket": copyFlag,
"s3-region": copyFlag,
"s3-config-secret": copyFlag,
"s3-endpoint": copyFlag,
"s3-endpoint-ca": copyFlag,
"s3-folder": copyFlag,
"s3-insecure": copyFlag,
"s3-proxy": copyFlag,
"s3-region": copyFlag,
"s3-secret-key": copyFlag,
"s3-skip-ssl-verify": copyFlag,
"s3-timeout": copyFlag,
}
subcommandOpts := map[string]K3SFlagSet{
Expand Down
12 changes: 7 additions & 5 deletions pkg/cli/cmds/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,17 @@ var (
"etcd-expose-metrics": copyFlag,
"airgap-extra-registry": copyFlag,
"etcd-s3": copyFlag,
"etcd-s3-endpoint": copyFlag,
"etcd-s3-endpoint-ca": copyFlag,
"etcd-s3-skip-ssl-verify": copyFlag,
"etcd-s3-access-key": copyFlag,
"etcd-s3-secret-key": copyFlag,
"etcd-s3-bucket": copyFlag,
"etcd-s3-region": copyFlag,
"etcd-s3-config-secret": copyFlag,
"etcd-s3-endpoint": copyFlag,
"etcd-s3-endpoint-ca": copyFlag,
"etcd-s3-folder": copyFlag,
"etcd-s3-insecure": copyFlag,
"etcd-s3-proxy": copyFlag,
"etcd-s3-region": copyFlag,
"etcd-s3-secret-key": copyFlag,
"etcd-s3-skip-ssl-verify": copyFlag,
"etcd-s3-timeout": copyFlag,
"disable-helm-controller": dropFlag,
"helm-job-image": copyFlag,
Expand Down

0 comments on commit 5073efd

Please sign in to comment.