chore: replace vmware-tanzu/velero org references

Agent-Logs-Url: https://github.com/velero-io/velero/sessions/e8c22e84-a488-4645-a0e1-aea5a2926503

Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-22 07:38:02 +00:00
committed by GitHub
co-authored by kaovilai
parent d987388698
commit 0b7eaaf4e6
1309 changed files with 4405 additions and 4405 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ package backup
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/velero-io/velero/pkg/client"
)
func NewCommand(f client.Factory) *cobra.Command {
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"github.com/stretchr/testify/assert"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
)
func TestNewBackupCommand(t *testing.T) {
+8 -8
View File
@@ -28,14 +28,14 @@ import (
"k8s.io/client-go/tools/cache"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
"github.com/vmware-tanzu/velero/pkg/util/collections"
"github.com/vmware-tanzu/velero/pkg/util/kube"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/flag"
"github.com/velero-io/velero/pkg/cmd/util/output"
"github.com/velero-io/velero/pkg/util/collections"
"github.com/velero-io/velero/pkg/util/kube"
)
func NewCreateCommand(f client.Factory, use string) *cobra.Command {
+6 -6
View File
@@ -33,12 +33,12 @@ import (
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
"github.com/vmware-tanzu/velero/pkg/test"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
"github.com/velero-io/velero/pkg/test"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestCreateOptions_BuildBackup(t *testing.T) {
+7 -7
View File
@@ -27,13 +27,13 @@ import (
kubeerrs "k8s.io/apimachinery/pkg/util/errors"
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/cli"
"github.com/vmware-tanzu/velero/pkg/cmd/util/confirm"
"github.com/vmware-tanzu/velero/pkg/label"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/cli"
"github.com/velero-io/velero/pkg/cmd/util/confirm"
"github.com/velero-io/velero/pkg/label"
)
// NewDeleteCommand creates a new command that deletes a backup.
+6 -6
View File
@@ -26,12 +26,12 @@ import (
"github.com/stretchr/testify/require"
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/pkg/builder"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
"github.com/vmware-tanzu/velero/pkg/cmd/cli"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
veleroexec "github.com/vmware-tanzu/velero/pkg/util/exec"
"github.com/velero-io/velero/pkg/builder"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
"github.com/velero-io/velero/pkg/cmd/cli"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
velerotest "github.com/velero-io/velero/pkg/test"
veleroexec "github.com/velero-io/velero/pkg/util/exec"
)
func TestDeleteCommand(t *testing.T) {
+5 -5
View File
@@ -26,11 +26,11 @@ import (
"k8s.io/apimachinery/pkg/labels"
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
"github.com/vmware-tanzu/velero/pkg/label"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/output"
"github.com/velero-io/velero/pkg/label"
)
func NewDescribeCommand(f client.Factory, use string) *cobra.Command {
+6 -6
View File
@@ -27,12 +27,12 @@ import (
"k8s.io/client-go/rest"
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/pkg/builder"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
"github.com/vmware-tanzu/velero/pkg/features"
"github.com/vmware-tanzu/velero/pkg/test"
veleroexec "github.com/vmware-tanzu/velero/pkg/util/exec"
"github.com/velero-io/velero/pkg/builder"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
"github.com/velero-io/velero/pkg/features"
"github.com/velero-io/velero/pkg/test"
veleroexec "github.com/velero-io/velero/pkg/util/exec"
)
func TestNewDescribeCommand(t *testing.T) {
+5 -5
View File
@@ -28,11 +28,11 @@ import (
"github.com/spf13/pflag"
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/cacert"
"github.com/vmware-tanzu/velero/pkg/cmd/util/downloadrequest"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/cacert"
"github.com/velero-io/velero/pkg/cmd/util/downloadrequest"
)
func NewDownloadCommand(f client.Factory) *cobra.Command {
+5 -5
View File
@@ -27,11 +27,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/vmware-tanzu/velero/pkg/builder"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
veleroexec "github.com/vmware-tanzu/velero/pkg/util/exec"
"github.com/velero-io/velero/pkg/builder"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
velerotest "github.com/velero-io/velero/pkg/test"
veleroexec "github.com/velero-io/velero/pkg/util/exec"
)
func TestNewDownloadCommand(t *testing.T) {
+4 -4
View File
@@ -24,10 +24,10 @@ import (
"k8s.io/apimachinery/pkg/labels"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/output"
)
func NewGetCommand(f client.Factory, use string) *cobra.Command {
+5 -5
View File
@@ -27,11 +27,11 @@ import (
"github.com/stretchr/testify/require"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/pkg/builder"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
veleroexec "github.com/vmware-tanzu/velero/pkg/util/exec"
"github.com/velero-io/velero/pkg/builder"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
velerotest "github.com/velero-io/velero/pkg/test"
veleroexec "github.com/velero-io/velero/pkg/util/exec"
)
func TestNewGetCommand(t *testing.T) {
+5 -5
View File
@@ -27,11 +27,11 @@ import (
apierrors "k8s.io/apimachinery/pkg/api/errors"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/cacert"
"github.com/vmware-tanzu/velero/pkg/cmd/util/downloadrequest"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/cacert"
"github.com/velero-io/velero/pkg/cmd/util/downloadrequest"
)
type LogsOptions struct {
+6 -6
View File
@@ -33,12 +33,12 @@ import (
"github.com/stretchr/testify/require"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
"github.com/vmware-tanzu/velero/pkg/cmd/util/cacert"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
"github.com/velero-io/velero/pkg/cmd/util/cacert"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestNewLogsCommand(t *testing.T) {
@@ -19,7 +19,7 @@ package backuplocation
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/velero-io/velero/pkg/client"
)
func NewCommand(f client.Factory) *cobra.Command {
@@ -21,7 +21,7 @@ import (
"github.com/stretchr/testify/assert"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
)
func TestNewCommand(t *testing.T) {
+7 -7
View File
@@ -31,13 +31,13 @@ import (
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/internal/storage"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
"github.com/velero-io/velero/internal/storage"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/flag"
"github.com/velero-io/velero/pkg/cmd/util/output"
)
func NewCreateCommand(f client.Factory, use string) *cobra.Command {
+3 -3
View File
@@ -30,9 +30,9 @@ import (
corev1api "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
veleroflag "github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
veleroflag "github.com/velero-io/velero/pkg/cmd/util/flag"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestBuildBackupStorageLocationSetsNamespace(t *testing.T) {
+5 -5
View File
@@ -27,11 +27,11 @@ import (
kubeerrs "k8s.io/apimachinery/pkg/util/errors"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/cli"
"github.com/vmware-tanzu/velero/pkg/cmd/util/confirm"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/cli"
"github.com/velero-io/velero/pkg/cmd/util/confirm"
)
// NewDeleteCommand creates and returns a new cobra command for deleting backup-locations.
+6 -6
View File
@@ -27,12 +27,12 @@ import (
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
"github.com/vmware-tanzu/velero/pkg/cmd/cli"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
veleroexec "github.com/vmware-tanzu/velero/pkg/util/exec"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
"github.com/velero-io/velero/pkg/cmd/cli"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
velerotest "github.com/velero-io/velero/pkg/test"
veleroexec "github.com/velero-io/velero/pkg/util/exec"
)
func TestNewDeleteCommand(t *testing.T) {
+4 -4
View File
@@ -24,10 +24,10 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/output"
)
func NewGetCommand(f client.Factory, use string) *cobra.Command {
+4 -4
View File
@@ -25,10 +25,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
veleroexec "github.com/vmware-tanzu/velero/pkg/util/exec"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
velerotest "github.com/velero-io/velero/pkg/test"
veleroexec "github.com/velero-io/velero/pkg/util/exec"
)
func TestNewGetCommand(t *testing.T) {
+7 -7
View File
@@ -28,13 +28,13 @@ import (
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/internal/storage"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
"github.com/vmware-tanzu/velero/pkg/util/boolptr"
"github.com/velero-io/velero/internal/storage"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/flag"
"github.com/velero-io/velero/pkg/util/boolptr"
)
func NewSetCommand(f client.Factory, use string) *cobra.Command {
+6 -6
View File
@@ -28,12 +28,12 @@ import (
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
veleroflag "github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
"github.com/vmware-tanzu/velero/pkg/util/boolptr"
veleroexec "github.com/vmware-tanzu/velero/pkg/util/exec"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
veleroflag "github.com/velero-io/velero/pkg/cmd/util/flag"
velerotest "github.com/velero-io/velero/pkg/test"
"github.com/velero-io/velero/pkg/util/boolptr"
veleroexec "github.com/velero-io/velero/pkg/util/exec"
)
func TestNewSetCommand(t *testing.T) {
+5 -5
View File
@@ -31,16 +31,16 @@ import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/buildinfo"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/features"
"github.com/velero-io/velero/pkg/buildinfo"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/features"
)
const (
// kubectlTimeout is how long we wait in seconds for `kubectl version`
// before killing the process
kubectlTimeout = 5 * time.Second
issueURL = "https://github.com/vmware-tanzu/velero/issues/new"
issueURL = "https://github.com/velero-io/velero/issues/new"
// IssueTemplate is used to generate .github/ISSUE_TEMPLATE/bug_report.md
// as well as the initial text that's place in a new Github issue as
// the result of running `velero bug`.
@@ -95,7 +95,7 @@ Please provide the output of the following commands (Pasting long output into a
**Vote on this issue!**
This is an invitation to the Velero community to vote on issues, you can see the project's [top voted issues listed here](https://github.com/vmware-tanzu/velero/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
This is an invitation to the Velero community to vote on issues, you can see the project's [top voted issues listed here](https://github.com/velero-io/velero/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
Use the "reaction smiley face" up to the right of this comment to vote.
- :+1: for "I would like to see this bug fixed as soon as possible"
+1 -1
View File
@@ -19,7 +19,7 @@ package client
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/client/config"
"github.com/velero-io/velero/pkg/cmd/cli/client/config"
)
func NewCommand() *cobra.Command {
+2 -2
View File
@@ -22,8 +22,8 @@ import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
)
func NewGetCommand() *cobra.Command {
+2 -2
View File
@@ -23,8 +23,8 @@ import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
)
func NewSetCommand() *cobra.Command {
+6 -6
View File
@@ -19,12 +19,12 @@ package create
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/backup"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/backuplocation"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/restore"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/schedule"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/snapshotlocation"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd/cli/backup"
"github.com/velero-io/velero/pkg/cmd/cli/backuplocation"
"github.com/velero-io/velero/pkg/cmd/cli/restore"
"github.com/velero-io/velero/pkg/cmd/cli/schedule"
"github.com/velero-io/velero/pkg/cmd/cli/snapshotlocation"
)
func NewCommand(f client.Factory) *cobra.Command {
+13 -13
View File
@@ -30,22 +30,22 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/klog/v2"
"github.com/vmware-tanzu/velero/internal/credentials"
"github.com/vmware-tanzu/velero/pkg/buildinfo"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd/util/signals"
"github.com/vmware-tanzu/velero/pkg/datamover"
"github.com/vmware-tanzu/velero/pkg/datapath"
"github.com/vmware-tanzu/velero/pkg/repository"
"github.com/vmware-tanzu/velero/pkg/uploader"
"github.com/vmware-tanzu/velero/pkg/util/filesystem"
"github.com/vmware-tanzu/velero/pkg/util/kube"
"github.com/vmware-tanzu/velero/pkg/util/logging"
"github.com/velero-io/velero/internal/credentials"
"github.com/velero-io/velero/pkg/buildinfo"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd/util/signals"
"github.com/velero-io/velero/pkg/datamover"
"github.com/velero-io/velero/pkg/datapath"
"github.com/velero-io/velero/pkg/repository"
"github.com/velero-io/velero/pkg/uploader"
"github.com/velero-io/velero/pkg/util/filesystem"
"github.com/velero-io/velero/pkg/util/kube"
"github.com/velero-io/velero/pkg/util/logging"
ctrl "sigs.k8s.io/controller-runtime"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
velerov2alpha1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v2alpha1"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
velerov2alpha1api "github.com/velero-io/velero/pkg/apis/velero/v2alpha1"
ctlcache "sigs.k8s.io/controller-runtime/pkg/cache"
ctlclient "sigs.k8s.io/controller-runtime/pkg/client"
+4 -4
View File
@@ -24,10 +24,10 @@ import (
"github.com/stretchr/testify/mock"
ctlclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/internal/credentials"
cacheMock "github.com/vmware-tanzu/velero/pkg/cmd/cli/datamover/mocks"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
"github.com/vmware-tanzu/velero/pkg/util/filesystem"
"github.com/velero-io/velero/internal/credentials"
cacheMock "github.com/velero-io/velero/pkg/cmd/cli/datamover/mocks"
velerotest "github.com/velero-io/velero/pkg/test"
"github.com/velero-io/velero/pkg/util/filesystem"
)
func fakeCreateDataPathServiceWithErr(_ *dataMoverBackup) (dataPathService, error) {
+1 -1
View File
@@ -18,7 +18,7 @@ import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/velero-io/velero/pkg/client"
)
func NewCommand(f client.Factory) *cobra.Command {
+13 -13
View File
@@ -31,19 +31,19 @@ import (
"k8s.io/klog/v2"
ctrl "sigs.k8s.io/controller-runtime"
"github.com/vmware-tanzu/velero/internal/credentials"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
velerov2alpha1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v2alpha1"
"github.com/vmware-tanzu/velero/pkg/buildinfo"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd/util/signals"
"github.com/vmware-tanzu/velero/pkg/datamover"
"github.com/vmware-tanzu/velero/pkg/datapath"
"github.com/vmware-tanzu/velero/pkg/repository"
"github.com/vmware-tanzu/velero/pkg/uploader"
"github.com/vmware-tanzu/velero/pkg/util/filesystem"
"github.com/vmware-tanzu/velero/pkg/util/kube"
"github.com/vmware-tanzu/velero/pkg/util/logging"
"github.com/velero-io/velero/internal/credentials"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
velerov2alpha1api "github.com/velero-io/velero/pkg/apis/velero/v2alpha1"
"github.com/velero-io/velero/pkg/buildinfo"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd/util/signals"
"github.com/velero-io/velero/pkg/datamover"
"github.com/velero-io/velero/pkg/datapath"
"github.com/velero-io/velero/pkg/repository"
"github.com/velero-io/velero/pkg/uploader"
"github.com/velero-io/velero/pkg/util/filesystem"
"github.com/velero-io/velero/pkg/util/kube"
"github.com/velero-io/velero/pkg/util/logging"
ctlcache "sigs.k8s.io/controller-runtime/pkg/cache"
ctlclient "sigs.k8s.io/controller-runtime/pkg/client"
+2 -2
View File
@@ -20,8 +20,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
cacheMock "github.com/vmware-tanzu/velero/pkg/cmd/cli/datamover/mocks"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
cacheMock "github.com/velero-io/velero/pkg/cmd/cli/datamover/mocks"
velerotest "github.com/velero-io/velero/pkg/test"
)
func fakeCreateDataPathRestoreWithErr(_ *dataMoverRestore) (dataPathService, error) {
+3 -3
View File
@@ -35,9 +35,9 @@ import (
"k8s.io/client-go/tools/clientcmd"
ctrlclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
)
//go:embed cshd-scripts/velero.cshd
+5 -5
View File
@@ -19,11 +19,11 @@ package delete
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/backup"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/backuplocation"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/restore"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/schedule"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd/cli/backup"
"github.com/velero-io/velero/pkg/cmd/cli/backuplocation"
"github.com/velero-io/velero/pkg/cmd/cli/restore"
"github.com/velero-io/velero/pkg/cmd/cli/schedule"
)
func NewCommand(f client.Factory) *cobra.Command {
+2 -2
View File
@@ -23,8 +23,8 @@ import (
"github.com/spf13/pflag"
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd/util/confirm"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd/util/confirm"
)
// DeleteOptions contains parameters used for deleting a restore.
+4 -4
View File
@@ -19,10 +19,10 @@ package describe
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/backup"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/restore"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/schedule"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd/cli/backup"
"github.com/velero-io/velero/pkg/cmd/cli/restore"
"github.com/velero-io/velero/pkg/cmd/cli/schedule"
)
func NewCommand(f client.Factory) *cobra.Command {
+7 -7
View File
@@ -19,13 +19,13 @@ package get
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/backup"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/backuplocation"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/plugin"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/restore"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/schedule"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/snapshotlocation"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd/cli/backup"
"github.com/velero-io/velero/pkg/cmd/cli/backuplocation"
"github.com/velero-io/velero/pkg/cmd/cli/plugin"
"github.com/velero-io/velero/pkg/cmd/cli/restore"
"github.com/velero-io/velero/pkg/cmd/cli/schedule"
"github.com/velero-io/velero/pkg/cmd/cli/snapshotlocation"
)
func NewCommand(f client.Factory) *cobra.Command {
+10 -10
View File
@@ -28,16 +28,16 @@ import (
"github.com/spf13/pflag"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"github.com/vmware-tanzu/velero/internal/velero"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
"github.com/vmware-tanzu/velero/pkg/install"
velerotypes "github.com/vmware-tanzu/velero/pkg/types"
"github.com/vmware-tanzu/velero/pkg/uploader"
kubeutil "github.com/vmware-tanzu/velero/pkg/util/kube"
"github.com/velero-io/velero/internal/velero"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/flag"
"github.com/velero-io/velero/pkg/cmd/util/output"
"github.com/velero-io/velero/pkg/install"
velerotypes "github.com/velero-io/velero/pkg/types"
"github.com/velero-io/velero/pkg/uploader"
kubeutil "github.com/velero-io/velero/pkg/util/kube"
)
// Options collects all the options for installing Velero into a Kubernetes cluster.
+2 -2
View File
@@ -27,8 +27,8 @@ import (
corev1api "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestPriorityClassNameFlag(t *testing.T) {
+1 -1
View File
@@ -19,7 +19,7 @@ package nodeagent
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/velero-io/velero/pkg/client"
)
func NewCommand(f client.Factory) *cobra.Command {
+17 -17
View File
@@ -47,23 +47,23 @@ import (
ctrlclient "sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/manager"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
velerov2alpha1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v2alpha1"
"github.com/vmware-tanzu/velero/pkg/buildinfo"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/signals"
"github.com/vmware-tanzu/velero/pkg/constant"
"github.com/vmware-tanzu/velero/pkg/controller"
"github.com/vmware-tanzu/velero/pkg/datapath"
"github.com/vmware-tanzu/velero/pkg/exposer"
"github.com/vmware-tanzu/velero/pkg/metrics"
"github.com/vmware-tanzu/velero/pkg/nodeagent"
repository "github.com/vmware-tanzu/velero/pkg/repository/manager"
velerotypes "github.com/vmware-tanzu/velero/pkg/types"
"github.com/vmware-tanzu/velero/pkg/util/filesystem"
"github.com/vmware-tanzu/velero/pkg/util/kube"
"github.com/vmware-tanzu/velero/pkg/util/logging"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
velerov2alpha1api "github.com/velero-io/velero/pkg/apis/velero/v2alpha1"
"github.com/velero-io/velero/pkg/buildinfo"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/signals"
"github.com/velero-io/velero/pkg/constant"
"github.com/velero-io/velero/pkg/controller"
"github.com/velero-io/velero/pkg/datapath"
"github.com/velero-io/velero/pkg/exposer"
"github.com/velero-io/velero/pkg/metrics"
"github.com/velero-io/velero/pkg/nodeagent"
repository "github.com/velero-io/velero/pkg/repository/manager"
velerotypes "github.com/velero-io/velero/pkg/types"
"github.com/velero-io/velero/pkg/util/filesystem"
"github.com/velero-io/velero/pkg/util/kube"
"github.com/velero-io/velero/pkg/util/logging"
)
var (
+5 -5
View File
@@ -31,12 +31,12 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/fake"
"github.com/vmware-tanzu/velero/pkg/builder"
"github.com/vmware-tanzu/velero/pkg/nodeagent"
testutil "github.com/vmware-tanzu/velero/pkg/test"
velerotypes "github.com/vmware-tanzu/velero/pkg/types"
"github.com/velero-io/velero/pkg/builder"
"github.com/velero-io/velero/pkg/nodeagent"
testutil "github.com/velero-io/velero/pkg/test"
velerotypes "github.com/velero-io/velero/pkg/types"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
)
func Test_validatePodVolumesHostPath(t *testing.T) {
+5 -5
View File
@@ -29,11 +29,11 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
"github.com/vmware-tanzu/velero/pkg/builder"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/confirm"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
"github.com/velero-io/velero/pkg/builder"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/confirm"
"github.com/velero-io/velero/pkg/cmd/util/flag"
)
const (
+4 -4
View File
@@ -24,10 +24,10 @@ import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/serverstatus"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/cli/serverstatus"
"github.com/velero-io/velero/pkg/cmd/util/output"
)
func NewGetCommand(f client.Factory, use string) *cobra.Command {
+2 -2
View File
@@ -25,11 +25,11 @@ import (
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/kubernetes"
"github.com/vmware-tanzu/velero/pkg/install"
"github.com/velero-io/velero/pkg/install"
)
// veleroDeployment returns a Velero deployment object, selected with label and container name,
// refer to https://github.com/vmware-tanzu/velero/issues/3961 for more information
// refer to https://github.com/velero-io/velero/issues/3961 for more information
func veleroDeployment(ctx context.Context, kubeClient kubernetes.Interface, namespace string) (*appsv1api.Deployment, error) {
veleroLabels := labels.FormatLabels(install.Labels())
+1 -1
View File
@@ -19,7 +19,7 @@ package plugin
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/velero-io/velero/pkg/client"
)
func NewCommand(f client.Factory) *cobra.Command {
+2 -2
View File
@@ -26,8 +26,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
)
func NewRemoveCommand(f client.Factory) *cobra.Command {
+12 -12
View File
@@ -30,21 +30,21 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/klog/v2"
"github.com/vmware-tanzu/velero/internal/credentials"
"github.com/vmware-tanzu/velero/pkg/buildinfo"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd/util/signals"
"github.com/vmware-tanzu/velero/pkg/datapath"
"github.com/vmware-tanzu/velero/pkg/podvolume"
"github.com/vmware-tanzu/velero/pkg/repository"
"github.com/vmware-tanzu/velero/pkg/uploader"
"github.com/vmware-tanzu/velero/pkg/util/filesystem"
"github.com/vmware-tanzu/velero/pkg/util/kube"
"github.com/vmware-tanzu/velero/pkg/util/logging"
"github.com/velero-io/velero/internal/credentials"
"github.com/velero-io/velero/pkg/buildinfo"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd/util/signals"
"github.com/velero-io/velero/pkg/datapath"
"github.com/velero-io/velero/pkg/podvolume"
"github.com/velero-io/velero/pkg/repository"
"github.com/velero-io/velero/pkg/uploader"
"github.com/velero-io/velero/pkg/util/filesystem"
"github.com/velero-io/velero/pkg/util/kube"
"github.com/velero-io/velero/pkg/util/logging"
ctrl "sigs.k8s.io/controller-runtime"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
ctlcache "sigs.k8s.io/controller-runtime/pkg/cache"
ctlclient "sigs.k8s.io/controller-runtime/pkg/client"
+4 -4
View File
@@ -24,10 +24,10 @@ import (
"github.com/stretchr/testify/mock"
ctlclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/internal/credentials"
cacheMock "github.com/vmware-tanzu/velero/pkg/cmd/cli/datamover/mocks"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
"github.com/vmware-tanzu/velero/pkg/util/filesystem"
"github.com/velero-io/velero/internal/credentials"
cacheMock "github.com/velero-io/velero/pkg/cmd/cli/datamover/mocks"
velerotest "github.com/velero-io/velero/pkg/test"
"github.com/velero-io/velero/pkg/util/filesystem"
)
func fakeCreateDataPathServiceWithErr(_ *podVolumeBackup) (dataPathService, error) {
+1 -1
View File
@@ -18,7 +18,7 @@ import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/velero-io/velero/pkg/client"
)
func NewCommand(f client.Factory) *cobra.Command {
+12 -12
View File
@@ -31,18 +31,18 @@ import (
"k8s.io/klog/v2"
ctrl "sigs.k8s.io/controller-runtime"
"github.com/vmware-tanzu/velero/internal/credentials"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/buildinfo"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd/util/signals"
"github.com/vmware-tanzu/velero/pkg/datapath"
"github.com/vmware-tanzu/velero/pkg/podvolume"
"github.com/vmware-tanzu/velero/pkg/repository"
"github.com/vmware-tanzu/velero/pkg/uploader"
"github.com/vmware-tanzu/velero/pkg/util/filesystem"
"github.com/vmware-tanzu/velero/pkg/util/kube"
"github.com/vmware-tanzu/velero/pkg/util/logging"
"github.com/velero-io/velero/internal/credentials"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/buildinfo"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd/util/signals"
"github.com/velero-io/velero/pkg/datapath"
"github.com/velero-io/velero/pkg/podvolume"
"github.com/velero-io/velero/pkg/repository"
"github.com/velero-io/velero/pkg/uploader"
"github.com/velero-io/velero/pkg/util/filesystem"
"github.com/velero-io/velero/pkg/util/kube"
"github.com/velero-io/velero/pkg/util/logging"
ctlcache "sigs.k8s.io/controller-runtime/pkg/cache"
ctlclient "sigs.k8s.io/controller-runtime/pkg/client"
+2 -2
View File
@@ -20,8 +20,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
cacheMock "github.com/vmware-tanzu/velero/pkg/cmd/cli/datamover/mocks"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
cacheMock "github.com/velero-io/velero/pkg/cmd/cli/datamover/mocks"
velerotest "github.com/velero-io/velero/pkg/test"
)
func fakeCreateRestoreDataPathServiceWithErr(_ *podVolumeRestore) (dataPathService, error) {
+4 -4
View File
@@ -24,10 +24,10 @@ import (
"k8s.io/apimachinery/pkg/labels"
ctrlclient "sigs.k8s.io/controller-runtime/pkg/client"
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/output"
)
func NewGetCommand(f client.Factory, use string) *cobra.Command {
+1 -1
View File
@@ -19,7 +19,7 @@ package repo
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/velero-io/velero/pkg/client"
)
func NewCommand(f client.Factory) *cobra.Command {
+9 -9
View File
@@ -18,16 +18,16 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/internal/credentials"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
velerocli "github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/repository"
"github.com/vmware-tanzu/velero/pkg/util/filesystem"
"github.com/vmware-tanzu/velero/pkg/util/logging"
"github.com/velero-io/velero/internal/credentials"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
velerocli "github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/repository"
"github.com/velero-io/velero/pkg/util/filesystem"
"github.com/velero-io/velero/pkg/util/logging"
repokey "github.com/vmware-tanzu/velero/pkg/repository/keys"
"github.com/vmware-tanzu/velero/pkg/repository/maintenance"
repomanager "github.com/vmware-tanzu/velero/pkg/repository/manager"
repokey "github.com/velero-io/velero/pkg/repository/keys"
"github.com/velero-io/velero/pkg/repository/maintenance"
repomanager "github.com/velero-io/velero/pkg/repository/manager"
)
type Options struct {
+9 -9
View File
@@ -31,15 +31,15 @@ import (
"k8s.io/client-go/tools/cache"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/internal/resourcemodifiers"
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
"github.com/vmware-tanzu/velero/pkg/util/boolptr"
"github.com/vmware-tanzu/velero/pkg/util/kube"
"github.com/vmware-tanzu/velero/pkg/util/velero/restore"
"github.com/velero-io/velero/internal/resourcemodifiers"
api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/flag"
"github.com/velero-io/velero/pkg/cmd/util/output"
"github.com/velero-io/velero/pkg/util/boolptr"
"github.com/velero-io/velero/pkg/util/kube"
"github.com/velero-io/velero/pkg/util/velero/restore"
)
func NewCreateCommand(f client.Factory, use string) *cobra.Command {
+5 -5
View File
@@ -26,11 +26,11 @@ import (
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestMostRecentBackup(t *testing.T) {
+5 -5
View File
@@ -27,11 +27,11 @@ import (
kubeerrs "k8s.io/apimachinery/pkg/util/errors"
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/cli"
"github.com/vmware-tanzu/velero/pkg/cmd/util/confirm"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/cli"
"github.com/velero-io/velero/pkg/cmd/util/confirm"
)
// NewDeleteCommand creates and returns a new cobra command for deleting restores.
+6 -6
View File
@@ -26,12 +26,12 @@ import (
"github.com/stretchr/testify/require"
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/pkg/builder"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
"github.com/vmware-tanzu/velero/pkg/cmd/cli"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
veleroexec "github.com/vmware-tanzu/velero/pkg/util/exec"
"github.com/velero-io/velero/pkg/builder"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
"github.com/velero-io/velero/pkg/cmd/cli"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
velerotest "github.com/velero-io/velero/pkg/test"
veleroexec "github.com/velero-io/velero/pkg/util/exec"
)
func TestDeleteCommand(t *testing.T) {
+5 -5
View File
@@ -26,11 +26,11 @@ import (
"k8s.io/apimachinery/pkg/labels"
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
"github.com/vmware-tanzu/velero/pkg/label"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/output"
"github.com/velero-io/velero/pkg/label"
)
func NewDescribeCommand(f client.Factory, use string) *cobra.Command {
+6 -6
View File
@@ -27,12 +27,12 @@ import (
"k8s.io/client-go/rest"
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/pkg/builder"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
"github.com/vmware-tanzu/velero/pkg/features"
"github.com/vmware-tanzu/velero/pkg/test"
veleroexec "github.com/vmware-tanzu/velero/pkg/util/exec"
"github.com/velero-io/velero/pkg/builder"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
"github.com/velero-io/velero/pkg/features"
"github.com/velero-io/velero/pkg/test"
veleroexec "github.com/velero-io/velero/pkg/util/exec"
)
func TestNewDescribeCommand(t *testing.T) {
+4 -4
View File
@@ -24,10 +24,10 @@ import (
"k8s.io/apimachinery/pkg/labels"
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/output"
)
func NewGetCommand(f client.Factory, use string) *cobra.Command {
+5 -5
View File
@@ -26,11 +26,11 @@ import (
"github.com/stretchr/testify/require"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/pkg/builder"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
veleroexec "github.com/vmware-tanzu/velero/pkg/util/exec"
"github.com/velero-io/velero/pkg/builder"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
velerotest "github.com/velero-io/velero/pkg/test"
veleroexec "github.com/velero-io/velero/pkg/util/exec"
)
func TestNewGetCommand(t *testing.T) {
+5 -5
View File
@@ -26,11 +26,11 @@ import (
apierrors "k8s.io/apimachinery/pkg/api/errors"
ctrlclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/cacert"
"github.com/vmware-tanzu/velero/pkg/cmd/util/downloadrequest"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/cacert"
"github.com/velero-io/velero/pkg/cmd/util/downloadrequest"
)
func NewLogsCommand(f client.Factory) *cobra.Command {
+6 -6
View File
@@ -25,12 +25,12 @@ import (
"github.com/stretchr/testify/require"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
cmdtest "github.com/vmware-tanzu/velero/pkg/cmd/test"
"github.com/vmware-tanzu/velero/pkg/cmd/util/cacert"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
cmdtest "github.com/velero-io/velero/pkg/cmd/test"
"github.com/velero-io/velero/pkg/cmd/util/cacert"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestNewLogsCommand(t *testing.T) {
+1 -1
View File
@@ -19,7 +19,7 @@ package restore
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/velero-io/velero/pkg/client"
)
func NewCommand(f client.Factory) *cobra.Command {
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"github.com/stretchr/testify/assert"
factorymocks "github.com/vmware-tanzu/velero/pkg/client/mocks"
factorymocks "github.com/velero-io/velero/pkg/client/mocks"
)
func TestNewRestoreCommand(t *testing.T) {
+6 -6
View File
@@ -26,12 +26,12 @@ import (
corev1api "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/vmware-tanzu/velero/internal/resourcepolicies"
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/backup"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
"github.com/velero-io/velero/internal/resourcepolicies"
api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/cli/backup"
"github.com/velero-io/velero/pkg/cmd/util/output"
)
func NewCreateCommand(f client.Factory, use string) *cobra.Command {
+5 -5
View File
@@ -27,11 +27,11 @@ import (
kubeerrs "k8s.io/apimachinery/pkg/util/errors"
controllerclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/cli"
"github.com/vmware-tanzu/velero/pkg/cmd/util/confirm"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/cli"
"github.com/velero-io/velero/pkg/cmd/util/confirm"
)
// NewDeleteCommand creates and returns a new cobra command for deleting schedules.
+4 -4
View File
@@ -25,10 +25,10 @@ import (
"k8s.io/apimachinery/pkg/labels"
ctrlclient "sigs.k8s.io/controller-runtime/pkg/client"
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/output"
)
func NewDescribeCommand(f client.Factory, use string) *cobra.Command {
+4 -4
View File
@@ -24,10 +24,10 @@ import (
"k8s.io/apimachinery/pkg/labels"
ctrlclient "sigs.k8s.io/controller-runtime/pkg/client"
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/output"
)
func NewGetCommand(f client.Factory, use string) *cobra.Command {
+4 -4
View File
@@ -28,10 +28,10 @@ import (
kubeerrs "k8s.io/apimachinery/pkg/util/errors"
ctrlclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/cli"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/cli"
)
// NewPauseCommand creates the command for pause
+1 -1
View File
@@ -19,7 +19,7 @@ package schedule
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/velero-io/velero/pkg/client"
)
func NewCommand(f client.Factory) *cobra.Command {
+1 -1
View File
@@ -3,7 +3,7 @@ package schedule
import (
"github.com/spf13/pflag"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
"github.com/velero-io/velero/pkg/cmd/util/flag"
)
type SkipOptions struct {
+3 -3
View File
@@ -19,9 +19,9 @@ package schedule
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/cli"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/cli"
)
// NewUnpauseCommand creates the command for unpause
+1 -1
View File
@@ -23,7 +23,7 @@ import (
"golang.org/x/text/cases"
"golang.org/x/text/language"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
"github.com/velero-io/velero/pkg/cmd/util/flag"
)
// SelectOptions defines the options for selecting resources
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
"github.com/velero-io/velero/pkg/cmd/util/flag"
)
func TestCompleteOfSelectOption(t *testing.T) {
+3 -3
View File
@@ -24,9 +24,9 @@ import (
"k8s.io/apimachinery/pkg/util/wait"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
veleroclient "github.com/vmware-tanzu/velero/pkg/client"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
veleroclient "github.com/velero-io/velero/pkg/client"
)
type Getter interface {
+6 -6
View File
@@ -25,12 +25,12 @@ import (
"github.com/spf13/pflag"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/flag"
"github.com/velero-io/velero/pkg/cmd/util/output"
)
func NewCreateCommand(f client.Factory, use string) *cobra.Command {
+4 -4
View File
@@ -23,10 +23,10 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/output"
)
func NewGetCommand(f client.Factory, use string) *cobra.Command {
+6 -6
View File
@@ -26,12 +26,12 @@ import (
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
"github.com/vmware-tanzu/velero/pkg/cmd/util/output"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/flag"
"github.com/velero-io/velero/pkg/cmd/util/output"
)
func NewSetCommand(f client.Factory, use string) *cobra.Command {
@@ -19,7 +19,7 @@ package snapshotlocation
import (
"github.com/spf13/cobra"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/velero-io/velero/pkg/client"
)
func NewCommand(f client.Factory) *cobra.Command {
+9 -9
View File
@@ -41,14 +41,14 @@ import (
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
velerov2alpha1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v2alpha1"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/util/confirm"
"github.com/vmware-tanzu/velero/pkg/controller"
"github.com/vmware-tanzu/velero/pkg/install"
kubeutil "github.com/vmware-tanzu/velero/pkg/util/kube"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
velerov2alpha1api "github.com/velero-io/velero/pkg/apis/velero/v2alpha1"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/util/confirm"
"github.com/velero-io/velero/pkg/controller"
"github.com/velero-io/velero/pkg/install"
kubeutil "github.com/velero-io/velero/pkg/util/kube"
)
var gracefulDeletionMaximumDuration = 1 * time.Minute
@@ -213,7 +213,7 @@ func deleteNamespace(ctx context.Context, kbClient kbclient.Client, namespace st
fmt.Print(".")
}
// Must wait until the namespace is deleted to avoid the issue https://github.com/vmware-tanzu/velero/issues/3974
// Must wait until the namespace is deleted to avoid the issue https://github.com/velero-io/velero/issues/3974
wait.Until(checkFunc, 5*time.Millisecond, ctx.Done())
if err != nil {
return err
+4 -4
View File
@@ -27,10 +27,10 @@ import (
"golang.org/x/mod/semver"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/vmware-tanzu/velero/pkg/buildinfo"
"github.com/vmware-tanzu/velero/pkg/client"
"github.com/vmware-tanzu/velero/pkg/cmd"
"github.com/vmware-tanzu/velero/pkg/cmd/cli/serverstatus"
"github.com/velero-io/velero/pkg/buildinfo"
"github.com/velero-io/velero/pkg/client"
"github.com/velero-io/velero/pkg/cmd"
"github.com/velero-io/velero/pkg/cmd/cli/serverstatus"
)
func NewCommand(f client.Factory) *cobra.Command {
+4 -4
View File
@@ -26,10 +26,10 @@ import (
"github.com/stretchr/testify/mock"
kbclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
"github.com/vmware-tanzu/velero/pkg/buildinfo"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
velerov1 "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
"github.com/velero-io/velero/pkg/buildinfo"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestPrintVersion(t *testing.T) {