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 <[email protected]>
  • Loading branch information
brandond committed Jul 17, 2024
1 parent 7d9d9ee commit 91f70f1
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 @@ -130,15 +130,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 91f70f1

Please sign in to comment.