Add snapshot-location to `velero create` command (#1472)

`velero snapshot-location create` existed, but not `velero create
snapshot-location`; update subcommand for parity with backup-location

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
pull/1479/head
Nolan Brubaker 2019-05-13 12:23:25 -04:00 committed by KubeKween
parent d05f8e53d8
commit c209f0c0c3
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import (
"github.com/heptio/velero/pkg/cmd/cli/backuplocation"
"github.com/heptio/velero/pkg/cmd/cli/restore"
"github.com/heptio/velero/pkg/cmd/cli/schedule"
"github.com/heptio/velero/pkg/cmd/cli/snapshotlocation"
)
func NewCommand(f client.Factory) *cobra.Command {
@ -38,6 +39,7 @@ func NewCommand(f client.Factory) *cobra.Command {
schedule.NewCreateCommand(f, "schedule"),
restore.NewCreateCommand(f, "restore"),
backuplocation.NewCreateCommand(f, "backup-location"),
snapshotlocation.NewCreateCommand(f, "snapshot-location"),
)
return c