Add the ability to delete an etcd snapshot locally or from S3 (#3277)

* Add the ability to delete a given set of etcd snapshots from the CLI for locally stored and S3 store snapshots.
This commit is contained in:
Brian Downs
2021-05-07 16:10:04 -07:00
committed by GitHub
parent e77fd18270
commit e998cd110d
9 changed files with 296 additions and 114 deletions

View File

@@ -27,7 +27,7 @@ func main() {
cmds.NewAgentCommand(agent.Run),
cmds.NewKubectlCommand(kubectl.Run),
cmds.NewCRICTL(crictl.Run),
cmds.NewEtcdSnapshotCommand(etcdsnapshot.Run),
cmds.NewEtcdSnapshotCommand(etcdsnapshot.Run, cmds.NewEtcdSnapshotSubcommands(etcdsnapshot.Delete)),
}
if err := app.Run(configfilearg.MustParse(os.Args)); err != nil {