mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-03 06:37:11 +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) {
|
||||
|
||||
@@ -23,14 +23,14 @@ import (
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/discovery"
|
||||
"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"
|
||||
"github.com/vmware-tanzu/velero/pkg/util/collections"
|
||||
"github.com/velero-io/velero/pkg/discovery"
|
||||
"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"
|
||||
"github.com/velero-io/velero/pkg/util/collections"
|
||||
)
|
||||
|
||||
/*
|
||||
|
||||
@@ -24,8 +24,8 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
velerotest "github.com/vmware-tanzu/velero/pkg/test"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
velerotest "github.com/velero-io/velero/pkg/test"
|
||||
)
|
||||
|
||||
type mockApplicable struct {
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
plugin "github.com/hashicorp/go-plugin"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
protobiav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
protobiav1 "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
)
|
||||
|
||||
// BackupItemActionPlugin is an implementation of go-plugin's Plugin
|
||||
|
||||
@@ -27,10 +27,10 @@ import (
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
protobiav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
protobiav1 "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// NewBackupItemActionPlugin constructs a BackupItemActionPlugin.
|
||||
|
||||
@@ -24,11 +24,11 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"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/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
biav1 "github.com/velero-io/velero/pkg/plugin/velero/backupitemaction/v1"
|
||||
)
|
||||
|
||||
// BackupItemActionGRPCServer implements the proto-generated BackupItemAction interface, and accepts
|
||||
|
||||
@@ -27,12 +27,12 @@ import (
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
mocks "github.com/vmware-tanzu/velero/pkg/plugin/velero/mocks/backupitemaction/v1"
|
||||
velerotest "github.com/vmware-tanzu/velero/pkg/test"
|
||||
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
mocks "github.com/velero-io/velero/pkg/plugin/velero/mocks/backupitemaction/v1"
|
||||
velerotest "github.com/velero-io/velero/pkg/test"
|
||||
)
|
||||
|
||||
func TestBackupItemActionGRPCServerExecute(t *testing.T) {
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
plugin "github.com/hashicorp/go-plugin"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
protobiav2 "github.com/vmware-tanzu/velero/pkg/plugin/generated/backupitemaction/v2"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
protobiav2 "github.com/velero-io/velero/pkg/plugin/generated/backupitemaction/v2"
|
||||
)
|
||||
|
||||
// BackupItemActionPlugin is an implementation of go-plugin's Plugin
|
||||
|
||||
@@ -27,10 +27,10 @@ import (
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
protobiav2 "github.com/vmware-tanzu/velero/pkg/plugin/generated/backupitemaction/v2"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
protobiav2 "github.com/velero-io/velero/pkg/plugin/generated/backupitemaction/v2"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// NewBackupItemActionPlugin constructs a BackupItemActionPlugin.
|
||||
|
||||
@@ -27,12 +27,12 @@ import (
|
||||
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
protobiav2 "github.com/vmware-tanzu/velero/pkg/plugin/generated/backupitemaction/v2"
|
||||
"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"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
protobiav2 "github.com/velero-io/velero/pkg/plugin/generated/backupitemaction/v2"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
biav2 "github.com/velero-io/velero/pkg/plugin/velero/backupitemaction/v2"
|
||||
)
|
||||
|
||||
// BackupItemActionGRPCServer implements the proto-generated BackupItemAction interface, and accepts
|
||||
|
||||
@@ -27,13 +27,13 @@ import (
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
protobiav2 "github.com/vmware-tanzu/velero/pkg/plugin/generated/backupitemaction/v2"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
mocks "github.com/vmware-tanzu/velero/pkg/plugin/velero/mocks/backupitemaction/v2"
|
||||
velerotest "github.com/vmware-tanzu/velero/pkg/test"
|
||||
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
protobiav2 "github.com/velero-io/velero/pkg/plugin/generated/backupitemaction/v2"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
mocks "github.com/velero-io/velero/pkg/plugin/velero/mocks/backupitemaction/v2"
|
||||
velerotest "github.com/velero-io/velero/pkg/test"
|
||||
)
|
||||
|
||||
func TestBackupItemActionGRPCServerExecute(t *testing.T) {
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/test"
|
||||
"github.com/velero-io/velero/pkg/test"
|
||||
)
|
||||
|
||||
type fakeClient struct {
|
||||
|
||||
@@ -19,7 +19,7 @@ package common
|
||||
import (
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
)
|
||||
|
||||
// FromGRPCError takes a gRPC status error, extracts a stack trace
|
||||
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/test"
|
||||
"github.com/velero-io/velero/pkg/test"
|
||||
)
|
||||
|
||||
func TestClientLogger(t *testing.T) {
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/client-go/kubernetes/fake"
|
||||
|
||||
velerov1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
velerov1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
)
|
||||
|
||||
func TestGetPluginConfig(t *testing.T) {
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
"google.golang.org/grpc/status"
|
||||
"google.golang.org/protobuf/protoadapt"
|
||||
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/vmware-tanzu/velero/pkg/util/logging"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/util/logging"
|
||||
)
|
||||
|
||||
// NewGRPCErrorWithCode wraps err in a gRPC status error with the error's stack trace
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
plugin "github.com/hashicorp/go-plugin"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
)
|
||||
|
||||
// DeleteItemActionPlugin is an implementation of go-plugin's Plugin
|
||||
|
||||
@@ -24,9 +24,9 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
var _ velero.DeleteItemAction = &DeleteItemActionGRPCClient{}
|
||||
|
||||
@@ -24,10 +24,10 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// DeleteItemActionGRPCServer implements the proto-generated DeleteItemActionServer interface, and accepts
|
||||
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
func ExampleNewServer_volumeSnapshotter() {
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
// test that this package do not import cloud provider
|
||||
|
||||
// Prevent https://github.com/vmware-tanzu/velero/issues/8207 and https://github.com/vmware-tanzu/velero/issues/8157
|
||||
// Prevent https://github.com/velero-io/velero/issues/8207 and https://github.com/velero-io/velero/issues/8157
|
||||
func TestPkgImportNoCloudProvider(t *testing.T) {
|
||||
_, filename, _, ok := runtime.Caller(0)
|
||||
if !ok {
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
plugin "github.com/hashicorp/go-plugin"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
protoibav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated/itemblockaction/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
protoibav1 "github.com/velero-io/velero/pkg/plugin/generated/itemblockaction/v1"
|
||||
)
|
||||
|
||||
// ItemBlockActionPlugin is an implementation of go-plugin's Plugin
|
||||
|
||||
@@ -26,10 +26,10 @@ import (
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
protoibav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated/itemblockaction/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
protoibav1 "github.com/velero-io/velero/pkg/plugin/generated/itemblockaction/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// NewItemBlockActionPlugin constructs a ItemBlockActionPlugin.
|
||||
|
||||
@@ -24,12 +24,12 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
protoibav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated/itemblockaction/v1"
|
||||
"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/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
protoibav1 "github.com/velero-io/velero/pkg/plugin/generated/itemblockaction/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
ibav1 "github.com/velero-io/velero/pkg/plugin/velero/itemblockaction/v1"
|
||||
)
|
||||
|
||||
// ItemBlockActionGRPCServer implements the proto-generated ItemBlockAction interface, and accepts
|
||||
|
||||
@@ -26,13 +26,13 @@ import (
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
protoibav1 "github.com/vmware-tanzu/velero/pkg/plugin/generated/itemblockaction/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
mocks "github.com/vmware-tanzu/velero/pkg/plugin/velero/mocks/itemblockaction/v1"
|
||||
velerotest "github.com/vmware-tanzu/velero/pkg/test"
|
||||
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
protoibav1 "github.com/velero-io/velero/pkg/plugin/generated/itemblockaction/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
mocks "github.com/velero-io/velero/pkg/plugin/velero/mocks/itemblockaction/v1"
|
||||
velerotest "github.com/velero-io/velero/pkg/test"
|
||||
)
|
||||
|
||||
func TestItemBlockActionGRPCServerGetRelatedItems(t *testing.T) {
|
||||
|
||||
@@ -19,7 +19,7 @@ package framework
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/util/logging"
|
||||
"github.com/velero-io/velero/pkg/util/logging"
|
||||
)
|
||||
|
||||
// newLogger returns a logger that is suitable for use within an
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/util/logging"
|
||||
"github.com/velero-io/velero/pkg/util/logging"
|
||||
)
|
||||
|
||||
func TestNewLogger(t *testing.T) {
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
plugin "github.com/hashicorp/go-plugin"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
)
|
||||
|
||||
// ObjectStorePlugin is an implementation of go-plugin's Plugin
|
||||
|
||||
@@ -25,8 +25,8 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
)
|
||||
|
||||
const byteChunkSize = 16384
|
||||
|
||||
@@ -24,9 +24,9 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// ObjectStoreGRPCServer implements the proto-generated ObjectStoreServer interface, and accepts
|
||||
|
||||
@@ -23,8 +23,8 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
)
|
||||
|
||||
// PluginIdentifier uniquely identifies a plugin by command, kind, and name.
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
plugin "github.com/hashicorp/go-plugin"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
)
|
||||
|
||||
// RestoreItemActionPlugin is an implementation of go-plugin's Plugin
|
||||
|
||||
@@ -26,10 +26,10 @@ import (
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"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/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
riav1 "github.com/velero-io/velero/pkg/plugin/velero/restoreitemaction/v1"
|
||||
)
|
||||
|
||||
var _ riav1.RestoreItemAction = &RestoreItemActionGRPCClient{}
|
||||
|
||||
@@ -24,11 +24,11 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
riav1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/restoreitemaction/v1"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
riav1 "github.com/velero-io/velero/pkg/plugin/velero/restoreitemaction/v1"
|
||||
)
|
||||
|
||||
// RestoreItemActionGRPCServer implements the proto-generated RestoreItemActionServer interface, and accepts
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
plugin "github.com/hashicorp/go-plugin"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
protoriav2 "github.com/vmware-tanzu/velero/pkg/plugin/generated/restoreitemaction/v2"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
protoriav2 "github.com/velero-io/velero/pkg/plugin/generated/restoreitemaction/v2"
|
||||
)
|
||||
|
||||
// RestoreItemActionPlugin is an implementation of go-plugin's Plugin
|
||||
|
||||
@@ -26,11 +26,11 @@ import (
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
protoriav2 "github.com/vmware-tanzu/velero/pkg/plugin/generated/restoreitemaction/v2"
|
||||
"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/framework/common"
|
||||
protoriav2 "github.com/velero-io/velero/pkg/plugin/generated/restoreitemaction/v2"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
riav2 "github.com/velero-io/velero/pkg/plugin/velero/restoreitemaction/v2"
|
||||
)
|
||||
|
||||
var _ riav2.RestoreItemAction = &RestoreItemActionGRPCClient{}
|
||||
|
||||
@@ -28,12 +28,12 @@ import (
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
protoriav2 "github.com/vmware-tanzu/velero/pkg/plugin/generated/restoreitemaction/v2"
|
||||
"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/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
protoriav2 "github.com/velero-io/velero/pkg/plugin/generated/restoreitemaction/v2"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
riav2 "github.com/velero-io/velero/pkg/plugin/velero/restoreitemaction/v2"
|
||||
)
|
||||
|
||||
// RestoreItemActionGRPCServer implements the proto-generated RestoreItemActionServer interface, and accepts
|
||||
|
||||
@@ -24,11 +24,11 @@ import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/spf13/pflag"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/cmd/server/config"
|
||||
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/cmd/server/config"
|
||||
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"
|
||||
)
|
||||
|
||||
// Server serves registered plugin implementations.
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
plugin "github.com/hashicorp/go-plugin"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
)
|
||||
|
||||
// VolumeSnapshotterPlugin is an implementation of go-plugin's Plugin
|
||||
|
||||
@@ -26,8 +26,8 @@ import (
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
)
|
||||
|
||||
// NewVolumeSnapshotterPlugin constructs a VolumeSnapshotterPlugin.
|
||||
|
||||
@@ -24,9 +24,9 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
vsv1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/volumesnapshotter/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/framework/common"
|
||||
proto "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
vsv1 "github.com/velero-io/velero/pkg/plugin/velero/volumesnapshotter/v1"
|
||||
)
|
||||
|
||||
// VolumeSnapshotterGRPCServer implements the proto-generated VolumeSnapshotterServer interface, and accepts
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
package v2
|
||||
|
||||
import (
|
||||
generated "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
generated "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
generated "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
generated "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
package v2
|
||||
|
||||
import (
|
||||
generated "github.com/vmware-tanzu/velero/pkg/plugin/generated"
|
||||
generated "github.com/velero-io/velero/pkg/plugin/generated"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
||||
|
||||
@@ -4,19 +4,19 @@ package mocks
|
||||
|
||||
import (
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
itemblockactionv1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/itemblockaction/v1"
|
||||
itemblockactionv1 "github.com/velero-io/velero/pkg/plugin/velero/itemblockaction/v1"
|
||||
|
||||
restoreitemactionv1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/restoreitemaction/v1"
|
||||
restoreitemactionv1 "github.com/velero-io/velero/pkg/plugin/velero/restoreitemaction/v1"
|
||||
|
||||
restoreitemactionv2 "github.com/vmware-tanzu/velero/pkg/plugin/velero/restoreitemaction/v2"
|
||||
restoreitemactionv2 "github.com/velero-io/velero/pkg/plugin/velero/restoreitemaction/v2"
|
||||
|
||||
v1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/backupitemaction/v1"
|
||||
v1 "github.com/velero-io/velero/pkg/plugin/velero/backupitemaction/v1"
|
||||
|
||||
v2 "github.com/vmware-tanzu/velero/pkg/plugin/velero/backupitemaction/v2"
|
||||
v2 "github.com/velero-io/velero/pkg/plugin/velero/backupitemaction/v2"
|
||||
|
||||
velero "github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
velero "github.com/velero-io/velero/pkg/plugin/velero"
|
||||
|
||||
volumesnapshotterv1 "github.com/vmware-tanzu/velero/pkg/plugin/velero/volumesnapshotter/v1"
|
||||
volumesnapshotterv1 "github.com/velero-io/velero/pkg/plugin/velero/volumesnapshotter/v1"
|
||||
)
|
||||
|
||||
// Manager is an autogenerated mock type for the Manager type
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
logrus "github.com/sirupsen/logrus"
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
|
||||
process "github.com/vmware-tanzu/velero/pkg/plugin/clientmgmt/process"
|
||||
process "github.com/velero-io/velero/pkg/plugin/clientmgmt/process"
|
||||
)
|
||||
|
||||
// ProcessFactory is an autogenerated mock type for the ProcessFactory type
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package generated;
|
||||
option go_package = "github.com/vmware-tanzu/velero/pkg/plugin/generated";
|
||||
option go_package = "github.com/velero-io/velero/pkg/plugin/generated";
|
||||
|
||||
import "Shared.proto";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package generated;
|
||||
option go_package = "github.com/vmware-tanzu/velero/pkg/plugin/generated";
|
||||
option go_package = "github.com/velero-io/velero/pkg/plugin/generated";
|
||||
|
||||
import "Shared.proto";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package generated;
|
||||
option go_package = "github.com/vmware-tanzu/velero/pkg/plugin/generated";
|
||||
option go_package = "github.com/velero-io/velero/pkg/plugin/generated";
|
||||
|
||||
import "Shared.proto";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package generated;
|
||||
option go_package = "github.com/vmware-tanzu/velero/pkg/plugin/generated";
|
||||
option go_package = "github.com/velero-io/velero/pkg/plugin/generated";
|
||||
|
||||
import "Shared.proto";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package generated;
|
||||
option go_package = "github.com/vmware-tanzu/velero/pkg/plugin/generated";
|
||||
option go_package = "github.com/velero-io/velero/pkg/plugin/generated";
|
||||
|
||||
import "Shared.proto";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package generated;
|
||||
option go_package = "github.com/vmware-tanzu/velero/pkg/plugin/generated";
|
||||
option go_package = "github.com/velero-io/velero/pkg/plugin/generated";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package generated;
|
||||
option go_package = "github.com/vmware-tanzu/velero/pkg/plugin/generated";
|
||||
option go_package = "github.com/velero-io/velero/pkg/plugin/generated";
|
||||
|
||||
import "Shared.proto";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package v2;
|
||||
option go_package = "github.com/vmware-tanzu/velero/pkg/plugin/generated/backupitemaction/v2";
|
||||
option go_package = "github.com/velero-io/velero/pkg/plugin/generated/backupitemaction/v2";
|
||||
|
||||
import "Shared.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package v1;
|
||||
option go_package = "github.com/vmware-tanzu/velero/pkg/plugin/generated/itemblockaction/v1";
|
||||
option go_package = "github.com/velero-io/velero/pkg/plugin/generated/itemblockaction/v1";
|
||||
|
||||
import "Shared.proto";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package v2;
|
||||
option go_package = "github.com/vmware-tanzu/velero/pkg/plugin/generated/restoreitemaction/v2";
|
||||
option go_package = "github.com/velero-io/velero/pkg/plugin/generated/restoreitemaction/v2";
|
||||
|
||||
import "Shared.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
@@ -22,12 +22,12 @@ import (
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
crclient "sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/vmware-tanzu/velero/internal/resourcepolicies"
|
||||
"github.com/vmware-tanzu/velero/internal/volumehelper"
|
||||
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/util/boolptr"
|
||||
podvolumeutil "github.com/vmware-tanzu/velero/pkg/util/podvolume"
|
||||
vhutil "github.com/vmware-tanzu/velero/pkg/util/volumehelper"
|
||||
"github.com/velero-io/velero/internal/resourcepolicies"
|
||||
"github.com/velero-io/velero/internal/volumehelper"
|
||||
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/util/boolptr"
|
||||
podvolumeutil "github.com/velero-io/velero/pkg/util/podvolume"
|
||||
vhutil "github.com/velero-io/velero/pkg/util/volumehelper"
|
||||
)
|
||||
|
||||
// ShouldPerformSnapshotWithBackup is used for third-party plugins.
|
||||
|
||||
@@ -26,10 +26,10 @@ import (
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
"github.com/vmware-tanzu/velero/internal/volumehelper"
|
||||
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/kuberesource"
|
||||
velerotest "github.com/vmware-tanzu/velero/pkg/test"
|
||||
"github.com/velero-io/velero/internal/volumehelper"
|
||||
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/kuberesource"
|
||||
velerotest "github.com/velero-io/velero/pkg/test"
|
||||
)
|
||||
|
||||
func TestShouldPerformSnapshotWithBackup(t *testing.T) {
|
||||
|
||||
@@ -19,8 +19,8 @@ package v1
|
||||
import (
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// BackupItemAction is an actor that performs an operation on an individual item being backed up.
|
||||
|
||||
@@ -23,8 +23,8 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// BackupItemAction is an actor that performs an operation on an individual item being backed up.
|
||||
|
||||
@@ -19,7 +19,7 @@ package velero
|
||||
import (
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
)
|
||||
|
||||
// DeleteItemAction is an actor that performs an operation on an individual item being restored.
|
||||
|
||||
@@ -19,8 +19,8 @@ package v1
|
||||
import (
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// ItemBlockAction is an action that returns a list of related items that must be backed up
|
||||
|
||||
@@ -4,7 +4,7 @@ package mocks
|
||||
|
||||
import (
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
velero "github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
velero "github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// DeleteItemAction is an autogenerated mock type for the DeleteItemAction type
|
||||
|
||||
@@ -21,9 +21,9 @@ import (
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
velero "github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
velero "github.com/velero-io/velero/pkg/plugin/velero"
|
||||
|
||||
velerov1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
velerov1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
)
|
||||
|
||||
// BackupItemAction is an autogenerated mock type for the BackupItemAction type
|
||||
|
||||
@@ -21,9 +21,9 @@ import (
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
|
||||
velero "github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
velero "github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// BackupItemAction is an autogenerated mock type for the BackupItemAction type
|
||||
|
||||
@@ -21,9 +21,9 @@ import (
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
velero "github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
velero "github.com/velero-io/velero/pkg/plugin/velero"
|
||||
|
||||
velerov1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
velerov1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
)
|
||||
|
||||
// ItemBlockAction is an autogenerated mock type for the ItemBlockAction type
|
||||
|
||||
@@ -19,7 +19,7 @@ package v1
|
||||
|
||||
import (
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
velero "github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
velero "github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// RestoreItemAction is an autogenerated mock type for the RestoreItemAction type
|
||||
|
||||
@@ -19,9 +19,9 @@ package v2
|
||||
|
||||
import (
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
|
||||
velero "github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
velero "github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// RestoreItemAction is an autogenerated mock type for the RestoreItemAction type
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
)
|
||||
|
||||
// RestoreItemActionExecuteInput contains the input parameters for the ItemAction's Execute function.
|
||||
|
||||
@@ -17,7 +17,7 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// RestoreItemAction is an actor that performs an operation on an individual item being restored.
|
||||
|
||||
@@ -21,8 +21,8 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
|
||||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
api "github.com/velero-io/velero/pkg/apis/velero/v1"
|
||||
"github.com/velero-io/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// RestoreItemAction is an actor that performs an operation on an individual item being restored.
|
||||
|
||||
Reference in New Issue
Block a user