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>
This commit is contained in:
Nolan Brubaker
2019-05-13 12:23:25 -04:00
committed by KubeKween
parent d05f8e53d8
commit c209f0c0c3

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