mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-10 18:16:29 +00:00
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:
co-authored by
kaovilai
parent
d987388698
commit
0b7eaaf4e6
@@ -20,11 +20,11 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
biav1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/backupitemaction/v1"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
biav1 "github.com/velero-io/velero/pkg/plugin/velero/backupitemaction/v1"
|
||||
)
|
||||
|
||||
// AdaptedBackupItemAction is a backup item action adapted to the v1 BackupItemAction API
|
||||
|
||||
@@ -25,12 +25,12 @@ import (
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
"github.com/vmware-tanzu/velero/internal/restartabletest"
|
||||
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
mocks "github.com/vmware-tanzu/velero/pkg/plugin/velero/mocks/backupitemaction/v1"
|
||||
"github.com/velero-io/velero/internal/restartabletest"
|
||||
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
mocks "github.com/velero-io/velero/pkg/plugin/velero/mocks/backupitemaction/v1"
|
||||
)
|
||||
|
||||
func TestRestartableGetBackupItemAction(t *testing.T) {
|
||||
|
||||
@@ -20,12 +20,12 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
biav1cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/backupitemaction/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
biav2 "github.com/vmware-tanzu/velero/pkg/plugin/velero/backupitemaction/v2"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
biav1cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/backupitemaction/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
biav2 "github.com/velero-io/velero/pkg/plugin/velero/backupitemaction/v2"
|
||||
)
|
||||
|
||||
// AdaptedBackupItemAction is a v1 BackupItemAction adapted to implement the v2 API
|
||||
|
||||
@@ -25,12 +25,12 @@ import (
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
"github.com/vmware-tanzu/velero/internal/restartabletest"
|
||||
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
mocksv2 "github.com/vmware-tanzu/velero/pkg/plugin/velero/mocks/backupitemaction/v2"
|
||||
"github.com/velero-io/velero/internal/restartabletest"
|
||||
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
mocksv2 "github.com/velero-io/velero/pkg/plugin/velero/mocks/backupitemaction/v2"
|
||||
)
|
||||
|
||||
func TestRestartableGetBackupItemAction(t *testing.T) {
|
||||
|
||||
@@ -20,11 +20,11 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
ibav1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/itemblockaction/v1"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
ibav1 "github.com/velero-io/velero/pkg/plugin/velero/itemblockaction/v1"
|
||||
)
|
||||
|
||||
// AdaptedItemBlockAction is an ItemBlock action adapted to the v1 ItemBlockAction API
|
||||
|
||||
@@ -25,12 +25,12 @@ import (
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
"github.com/vmware-tanzu/velero/internal/restartabletest"
|
||||
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
mocks "github.com/vmware-tanzu/velero/pkg/plugin/velero/mocks/itemblockaction/v1"
|
||||
"github.com/velero-io/velero/internal/restartabletest"
|
||||
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
mocks "github.com/velero-io/velero/pkg/plugin/velero/mocks/itemblockaction/v1"
|
||||
)
|
||||
|
||||
func TestRestartableGetItemBlockAction(t *testing.T) {
|
||||
|
||||
@@ -24,21 +24,21 @@ import (
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
biav1cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/backupitemaction/v1"
|
||||
biav2cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/backupitemaction/v2"
|
||||
ibav1cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/itemblockaction/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
riav1cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/restoreitemaction/v1"
|
||||
riav2cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/restoreitemaction/v2"
|
||||
vsv1cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/volumesnapshotter/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
biav1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/backupitemaction/v1"
|
||||
biav2 "github.com/vmware-tanzu/velero/pkg/plugin/velero/backupitemaction/v2"
|
||||
ibav1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/itemblockaction/v1"
|
||||
riav1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/restoreitemaction/v1"
|
||||
riav2 "github.com/vmware-tanzu/velero/pkg/plugin/velero/restoreitemaction/v2"
|
||||
vsv1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/volumesnapshotter/v1"
|
||||
biav1cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/backupitemaction/v1"
|
||||
biav2cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/backupitemaction/v2"
|
||||
ibav1cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/itemblockaction/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
riav1cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/restoreitemaction/v1"
|
||||
riav2cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/restoreitemaction/v2"
|
||||
vsv1cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/volumesnapshotter/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
biav1 "github.com/velero-io/velero/pkg/plugin/velero/backupitemaction/v1"
|
||||
biav2 "github.com/velero-io/velero/pkg/plugin/velero/backupitemaction/v2"
|
||||
ibav1 "github.com/velero-io/velero/pkg/plugin/velero/itemblockaction/v1"
|
||||
riav1 "github.com/velero-io/velero/pkg/plugin/velero/restoreitemaction/v1"
|
||||
riav2 "github.com/velero-io/velero/pkg/plugin/velero/restoreitemaction/v2"
|
||||
vsv1 "github.com/velero-io/velero/pkg/plugin/velero/volumesnapshotter/v1"
|
||||
)
|
||||
|
||||
// Manager manages the lifecycles of plugins.
|
||||
|
||||
@@ -26,17 +26,17 @@ import (
|
||||
"github.com/stretchr/testify/mock"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/vmware-tanzu/velero/internal/restartabletest"
|
||||
biav1cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/backupitemaction/v1"
|
||||
biav2cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/backupitemaction/v2"
|
||||
ibav1cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/itemblockaction/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
riav1cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/restoreitemaction/v1"
|
||||
riav2cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/restoreitemaction/v2"
|
||||
vsv1cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/volumesnapshotter/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/test"
|
||||
"github.com/velero-io/velero/internal/restartabletest"
|
||||
biav1cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/backupitemaction/v1"
|
||||
biav2cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/backupitemaction/v2"
|
||||
ibav1cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/itemblockaction/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
riav1cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/restoreitemaction/v1"
|
||||
riav2cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/restoreitemaction/v2"
|
||||
vsv1cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/volumesnapshotter/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/test"
|
||||
)
|
||||
|
||||
type mockRegistry struct {
|
||||
|
||||
@@ -26,11 +26,11 @@ import (
|
||||
hcplugin "github.com/hashicorp/go-plugin"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework"
|
||||
biav2 "github.com/vmware-tanzu/velero/pkg/plugin/framework/backupitemaction/v2"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
ibav1 "github.com/vmware-tanzu/velero/pkg/plugin/framework/itemblockaction/v1"
|
||||
riav2 "github.com/vmware-tanzu/velero/pkg/plugin/framework/restoreitemaction/v2"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework"
|
||||
biav2 "github.com/velero-io/velero/pkg/plugin/framework/backupitemaction/v2"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
ibav1 "github.com/velero-io/velero/pkg/plugin/framework/itemblockaction/v1"
|
||||
riav2 "github.com/velero-io/velero/pkg/plugin/framework/restoreitemaction/v2"
|
||||
)
|
||||
|
||||
// clientBuilder builds go-plugin Clients.
|
||||
|
||||
@@ -25,12 +25,12 @@ import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework"
|
||||
biav2 "github.com/vmware-tanzu/velero/pkg/plugin/framework/backupitemaction/v2"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
ibav1 "github.com/vmware-tanzu/velero/pkg/plugin/framework/itemblockaction/v1"
|
||||
riav2 "github.com/vmware-tanzu/velero/pkg/plugin/framework/restoreitemaction/v2"
|
||||
"github.com/vmware-tanzu/velero/pkg/test"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework"
|
||||
biav2 "github.com/velero-io/velero/pkg/plugin/framework/backupitemaction/v2"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
ibav1 "github.com/velero-io/velero/pkg/plugin/framework/itemblockaction/v1"
|
||||
riav2 "github.com/velero-io/velero/pkg/plugin/framework/restoreitemaction/v2"
|
||||
"github.com/velero-io/velero/pkg/test"
|
||||
)
|
||||
|
||||
func TestNewClientBuilder(t *testing.T) {
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
)
|
||||
|
||||
type Factory interface {
|
||||
|
||||
@@ -23,8 +23,8 @@ import (
|
||||
"github.com/stretchr/testify/mock"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
)
|
||||
|
||||
type mockClientProtocol struct {
|
||||
|
||||
@@ -25,9 +25,9 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/util/filesystem"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/util/filesystem"
|
||||
)
|
||||
|
||||
// Registry manages information about available plugins.
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/test"
|
||||
"github.com/velero-io/velero/pkg/test"
|
||||
)
|
||||
|
||||
func TestNewRegistry(t *testing.T) {
|
||||
|
||||
@@ -19,9 +19,9 @@ package clientmgmt
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// restartableDeleteItemAction is a delete item action for a given implementation (such as "pod"). It is associated with
|
||||
|
||||
@@ -24,12 +24,12 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
"github.com/vmware-tanzu/velero/internal/restartabletest"
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero/mocks"
|
||||
"github.com/velero-io/velero/internal/restartabletest"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero/mocks"
|
||||
)
|
||||
|
||||
func TestRestartableGetDeleteItemAction(t *testing.T) {
|
||||
|
||||
@@ -22,9 +22,9 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// restartableObjectStore is an object store for a given implementation (such as "aws"). It is associated with
|
||||
|
||||
@@ -26,10 +26,10 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/vmware-tanzu/velero/internal/restartabletest"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
providermocks "github.com/vmware-tanzu/velero/pkg/plugin/velero/mocks"
|
||||
"github.com/velero-io/velero/internal/restartabletest"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
providermocks "github.com/velero-io/velero/pkg/plugin/velero/mocks"
|
||||
)
|
||||
|
||||
func TestRestartableGetObjectStore(t *testing.T) {
|
||||
|
||||
@@ -19,10 +19,10 @@ package v1
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
riav1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/restoreitemaction/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
riav1 "github.com/velero-io/velero/pkg/plugin/velero/restoreitemaction/v1"
|
||||
)
|
||||
|
||||
// AdaptedRestoreItemAction is a restore item action adapted to the v1 RestoreItemAction API
|
||||
|
||||
@@ -24,12 +24,12 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
"github.com/vmware-tanzu/velero/internal/restartabletest"
|
||||
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
mocks "github.com/vmware-tanzu/velero/pkg/plugin/velero/mocks/restoreitemaction/v1"
|
||||
"github.com/velero-io/velero/internal/restartabletest"
|
||||
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
mocks "github.com/velero-io/velero/pkg/plugin/velero/mocks/restoreitemaction/v1"
|
||||
)
|
||||
|
||||
func TestRestartableGetRestoreItemAction(t *testing.T) {
|
||||
|
||||
@@ -19,12 +19,12 @@ package v2
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
riav1cli "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/restoreitemaction/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
riav2 "github.com/vmware-tanzu/velero/pkg/plugin/velero/restoreitemaction/v2"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
riav1cli "github.com/velero-io/velero/pkg/plugin/clientmgmt/restoreitemaction/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
riav2 "github.com/velero-io/velero/pkg/plugin/velero/restoreitemaction/v2"
|
||||
)
|
||||
|
||||
// AdaptedRestoreItemAction is a v1 RestoreItemAction adapted to implement the v2 API
|
||||
|
||||
@@ -24,12 +24,12 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
"github.com/vmware-tanzu/velero/internal/restartabletest"
|
||||
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
mocks "github.com/vmware-tanzu/velero/pkg/plugin/velero/mocks/restoreitemaction/v2"
|
||||
"github.com/velero-io/velero/internal/restartabletest"
|
||||
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
mocks "github.com/velero-io/velero/pkg/plugin/velero/mocks/restoreitemaction/v2"
|
||||
)
|
||||
|
||||
func TestRestartableGetRestoreItemAction(t *testing.T) {
|
||||
|
||||
@@ -20,9 +20,9 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
vsv1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/volumesnapshotter/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
vsv1 "github.com/velero-io/velero/pkg/plugin/velero/volumesnapshotter/v1"
|
||||
)
|
||||
|
||||
// AdaptedVolumeSnapshotter is a volume snapshotter adapted to the v1 VolumeSnapshotter API
|
||||
|
||||
@@ -25,10 +25,10 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
"github.com/vmware-tanzu/velero/internal/restartabletest"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
providermocks "github.com/vmware-tanzu/velero/pkg/plugin/velero/mocks/volumesnapshotter/v1"
|
||||
"github.com/velero-io/velero/internal/restartabletest"
|
||||
"github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
providermocks "github.com/velero-io/velero/pkg/plugin/velero/mocks/volumesnapshotter/v1"
|
||||
)
|
||||
|
||||
func TestRestartableGetVolumeSnapshotter(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user