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
+2 -2
View File
@@ -20,8 +20,8 @@ import (
"github.com/sirupsen/logrus"
corev1api "k8s.io/api/core/v1"
"github.com/vmware-tanzu/velero/pkg/kuberesource"
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
"github.com/velero-io/velero/pkg/kuberesource"
"github.com/velero-io/velero/pkg/plugin/velero"
)
func RelatedItemsForPod(pod *corev1api.Pod, log logrus.FieldLogger) []velero.ResourceIdentifier {
+2 -2
View File
@@ -20,8 +20,8 @@ import (
"github.com/sirupsen/logrus"
corev1api "k8s.io/api/core/v1"
"github.com/vmware-tanzu/velero/pkg/kuberesource"
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
"github.com/velero-io/velero/pkg/kuberesource"
"github.com/velero-io/velero/pkg/plugin/velero"
)
func RelatedItemsForPVC(pvc *corev1api.PersistentVolumeClaim, log logrus.FieldLogger) []velero.ResourceIdentifier {
@@ -22,9 +22,9 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/sets"
velerodiscovery "github.com/vmware-tanzu/velero/pkg/discovery"
"github.com/vmware-tanzu/velero/pkg/kuberesource"
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
velerodiscovery "github.com/velero-io/velero/pkg/discovery"
"github.com/velero-io/velero/pkg/kuberesource"
"github.com/velero-io/velero/pkg/plugin/velero"
)
func ClusterRoleBindingsForAction(clusterRoleBindingListers map[string]ClusterRoleBindingLister, discoveryHelper velerodiscovery.Helper) ([]ClusterRoleBinding, error) {
+2 -2
View File
@@ -33,7 +33,7 @@ import (
const (
// the keys of Azure BSL config:
// https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure/blob/main/backupstoragelocation.md
// https://github.com/velero-io/velero-plugin-for-microsoft-azure/blob/main/backupstoragelocation.md
BSLConfigResourceGroup = "resourceGroup"
BSLConfigStorageAccount = "storageAccount"
BSLConfigStorageAccountAccessKeyName = "storageAccountKeyEnvVar"
@@ -162,7 +162,7 @@ func GetStorageAccountCredentials(bslCfg map[string]string, creds map[string]str
// getStorageAccountURI returns the storage account URI by the following order:
// 1. Return the storage account URI directly if it is specified in BSL config
// 2. Try to call Azure API to get the storage account URI if possible(Background: https://github.com/vmware-tanzu/velero/issues/6163)
// 2. Try to call Azure API to get the storage account URI if possible(Background: https://github.com/velero-io/velero/issues/6163)
// 3. Fall back to return the default URI
func getStorageAccountURI(log logrus.FieldLogger, bslCfg map[string]string, creds map[string]string) (string, error) {
// if the URI is specified in the BSL, return it directly
+7 -7
View File
@@ -19,7 +19,7 @@ package collections
import (
"strings"
"github.com/vmware-tanzu/velero/internal/resourcepolicies"
"github.com/velero-io/velero/internal/resourcepolicies"
"github.com/gobwas/glob"
"github.com/pkg/errors"
@@ -28,11 +28,11 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/sets"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/discovery"
"github.com/vmware-tanzu/velero/pkg/kuberesource"
"github.com/vmware-tanzu/velero/pkg/util/boolptr"
"github.com/vmware-tanzu/velero/pkg/util/wildcard"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/discovery"
"github.com/velero-io/velero/pkg/kuberesource"
"github.com/velero-io/velero/pkg/util/boolptr"
"github.com/velero-io/velero/pkg/util/wildcard"
)
type globStringSet struct {
@@ -274,7 +274,7 @@ func GetResourceIncludesExcludes(helper discovery.Helper, includes, excludes []s
if err != nil {
// If we can't resolve it, return it as-is. This prevents the generated
// includes-excludes list from including *everything*, if none of the includes
// can be resolved. ref. https://github.com/vmware-tanzu/velero/issues/2461
// can be resolved. ref. https://github.com/velero-io/velero/issues/2461
return item
}
@@ -19,7 +19,7 @@ package collections
import (
"testing"
"github.com/vmware-tanzu/velero/internal/resourcepolicies"
"github.com/velero-io/velero/internal/resourcepolicies"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
@@ -29,9 +29,9 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/sets"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
"github.com/vmware-tanzu/velero/pkg/test"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
"github.com/velero-io/velero/pkg/test"
)
func TestShouldInclude(t *testing.T) {
+2 -2
View File
@@ -19,8 +19,8 @@ package csi
import (
"strings"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/features"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/features"
)
const (
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/vmware-tanzu/velero/pkg/features"
"github.com/velero-io/velero/pkg/features"
)
func TestCSIFeatureNotEnabledAndPluginIsFromCSI(t *testing.T) {
+4 -4
View File
@@ -36,10 +36,10 @@ import (
"k8s.io/apimachinery/pkg/util/wait"
crclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/util/boolptr"
"github.com/vmware-tanzu/velero/pkg/util/stringptr"
"github.com/vmware-tanzu/velero/pkg/util/stringslice"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/util/boolptr"
"github.com/velero-io/velero/pkg/util/stringptr"
"github.com/velero-io/velero/pkg/util/stringslice"
)
const (
+7 -7
View File
@@ -36,13 +36,13 @@ import (
clientTesting "k8s.io/client-go/testing"
crclient "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/test"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
"github.com/vmware-tanzu/velero/pkg/util/boolptr"
"github.com/vmware-tanzu/velero/pkg/util/logging"
"github.com/vmware-tanzu/velero/pkg/util/stringptr"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
"github.com/velero-io/velero/pkg/test"
velerotest "github.com/velero-io/velero/pkg/test"
"github.com/velero-io/velero/pkg/util/boolptr"
"github.com/velero-io/velero/pkg/util/logging"
"github.com/velero-io/velero/pkg/util/stringptr"
)
type reactor struct {
+2 -2
View File
@@ -27,8 +27,8 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/serializer"
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/util"
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/util"
)
// Encode converts the provided object to the specified format
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
veleroPkgClient "github.com/vmware-tanzu/velero/pkg/client"
veleroPkgClient "github.com/velero-io/velero/pkg/client"
)
func PatchResource(original, updated client.Object, kbClient client.Client) error {
+1 -1
View File
@@ -30,7 +30,7 @@ import (
corev1api "k8s.io/api/core/v1"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestEvent(t *testing.T) {
+2 -2
View File
@@ -24,8 +24,8 @@ 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"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestInternalLW(t *testing.T) {
+2 -2
View File
@@ -24,13 +24,13 @@ import (
corev1api "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
"github.com/vmware-tanzu/velero/pkg/builder"
"github.com/velero-io/velero/pkg/builder"
kubeClientFake "k8s.io/client-go/kubernetes/fake"
clientTesting "k8s.io/client-go/testing"
clientFake "sigs.k8s.io/controller-runtime/pkg/client/fake"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestIsLinuxNode(t *testing.T) {
@@ -33,8 +33,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/predicate"
"sigs.k8s.io/controller-runtime/pkg/reconcile"
"github.com/vmware-tanzu/velero/internal/storage"
velerov1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/internal/storage"
velerov1 "github.com/velero-io/velero/pkg/apis/velero/v1"
)
func TestStart(t *testing.T) {
+1 -1
View File
@@ -39,7 +39,7 @@ import (
clientTesting "k8s.io/client-go/testing"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
velerotest "github.com/velero-io/velero/pkg/test"
corev1client "k8s.io/client-go/kubernetes/typed/core/v1"
)
+1 -1
View File
@@ -26,7 +26,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/event"
velerov1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
velerov1 "github.com/velero-io/velero/pkg/apis/velero/v1"
)
func TestSpecChangePredicate(t *testing.T) {
+1 -1
View File
@@ -27,7 +27,7 @@ import (
"k8s.io/client-go/kubernetes/fake"
k8stesting "k8s.io/client-go/testing"
velerotesting "github.com/vmware-tanzu/velero/pkg/test"
velerotesting "github.com/velero-io/velero/pkg/test"
)
func TestValidatePriorityClass(t *testing.T) {
+2 -2
View File
@@ -33,8 +33,8 @@ import (
clientTesting "k8s.io/client-go/testing"
"github.com/vmware-tanzu/velero/pkg/builder"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
"github.com/velero-io/velero/pkg/builder"
velerotest "github.com/velero-io/velero/pkg/test"
)
type reactor struct {
+1 -1
View File
@@ -21,7 +21,7 @@ import (
corev1api "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
"github.com/vmware-tanzu/velero/pkg/constant"
"github.com/velero-io/velero/pkg/constant"
)
// ParseCPUAndMemoryResources is a helper function that parses CPU and memory requests and limits,
+2 -2
View File
@@ -22,8 +22,8 @@ import (
"github.com/stretchr/testify/require"
corev1api "k8s.io/api/core/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
"github.com/velero-io/velero/pkg/builder"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestGetSecretKey(t *testing.T) {
+1 -1
View File
@@ -23,7 +23,7 @@ import (
"github.com/stretchr/testify/require"
corev1api "k8s.io/api/core/v1"
"github.com/vmware-tanzu/velero/pkg/util/boolptr"
"github.com/velero-io/velero/pkg/util/boolptr"
)
func TestParseSecurityContext(t *testing.T) {
+5 -5
View File
@@ -37,10 +37,10 @@ import (
corev1client "k8s.io/client-go/kubernetes/typed/core/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/label"
"github.com/vmware-tanzu/velero/pkg/uploader"
"github.com/vmware-tanzu/velero/pkg/util/filesystem"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/label"
"github.com/velero-io/velero/pkg/uploader"
"github.com/velero-io/velero/pkg/util/filesystem"
)
// These annotations are taken from the Kubernetes persistent volume/persistent volume claim controller.
@@ -244,7 +244,7 @@ func isProvisionedByCSI(log logrus.FieldLogger, pv *corev1api.PersistentVolume,
return true, nil
}
// Although the pv.Spec.CSI is nil, the volume could be provisioned by a CSI driver when enabling the CSI migration
// Refer to https://github.com/vmware-tanzu/velero/issues/4496 for more details
// Refer to https://github.com/velero-io/velero/issues/4496 for more details
if pv.Annotations != nil {
driverName := pv.Annotations[KubeAnnDynamicallyProvisioned]
migratedDriver := pv.Annotations[KubeAnnMigratedTo]
+3 -3
View File
@@ -35,9 +35,9 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/kubernetes/fake"
"github.com/vmware-tanzu/velero/pkg/builder"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
"github.com/vmware-tanzu/velero/pkg/uploader"
"github.com/velero-io/velero/pkg/builder"
velerotest "github.com/velero-io/velero/pkg/test"
"github.com/velero-io/velero/pkg/uploader"
)
func TestNamespaceAndName(t *testing.T) {
+1 -1
View File
@@ -26,7 +26,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestDualModeLogger(t *testing.T) {
+1 -1
View File
@@ -55,7 +55,7 @@ func TestFire(t *testing.T) {
expectedEntryFields: map[string]any{
logrus.ErrorKey: pkgerrs.New("a pkg/errors error"),
errorFileField: "",
errorFunctionField: "github.com/vmware-tanzu/velero/pkg/util/logging.TestFire",
errorFunctionField: "github.com/velero-io/velero/pkg/util/logging.TestFire",
},
},
{
+1 -1
View File
@@ -15,7 +15,7 @@ limitations under the License.
*/
package logging
import "github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
import "github.com/velero-io/velero/pkg/cmd/util/flag"
// Format is a string representation of the desired output format for logs
type Format string
+1 -1
View File
@@ -23,7 +23,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/vmware-tanzu/velero/pkg/util/results"
"github.com/velero-io/velero/pkg/util/results"
)
// LogHook is a logrus hook that counts the number of log
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/vmware-tanzu/velero/pkg/util/results"
"github.com/velero-io/velero/pkg/util/results"
)
func TestLogHook_Fire(t *testing.T) {
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
"github.com/velero-io/velero/pkg/cmd/util/flag"
)
var sortedLogLevels = sortLogLevels()
+3 -3
View File
@@ -28,7 +28,7 @@ const (
logSourceField = "logSource"
logSourceSetMarkerField = "@logSourceSetBy"
logrusPackage = "github.com/sirupsen/logrus"
veleroPackage = "github.com/vmware-tanzu/velero/"
veleroPackage = "github.com/velero-io/velero/"
veleroPackageLen = len(veleroPackage)
)
@@ -60,7 +60,7 @@ func (h *LogLocationHook) Fire(entry *logrus.Entry) error {
// skip 2 frames:
// runtime.Callers
// github.com/vmware-tanzu/velero/pkg/util/logging/(*LogLocationHook).Fire
// github.com/velero-io/velero/pkg/util/logging/(*LogLocationHook).Fire
n := runtime.Callers(2, pcs)
// re-slice pcs based on the number of entries written
@@ -122,7 +122,7 @@ func getLogSourceSetMarker(entry *logrus.Entry) string {
func removeVeleroPackagePrefix(file string) string {
if index := strings.Index(file, veleroPackage); index != -1 {
// strip off .../github.com/vmware-tanzu/velero/ so we just have pkg/...
// strip off .../github.com/velero-io/velero/ so we just have pkg/...
return file[index+veleroPackageLen:]
}
+2 -2
View File
@@ -23,6 +23,6 @@ import (
)
func TestRemoveVeleroPackagePrefix(t *testing.T) {
assert.Equal(t, "pkg/foo.go", removeVeleroPackagePrefix("github.com/vmware-tanzu/velero/pkg/foo.go"))
assert.Equal(t, "github.com/vmware-tanzu/velero-plugin-example/foo.go", removeVeleroPackagePrefix("github.com/vmware-tanzu/velero-plugin-example/foo.go"))
assert.Equal(t, "pkg/foo.go", removeVeleroPackagePrefix("github.com/velero-io/velero/pkg/foo.go"))
assert.Equal(t, "github.com/velero-io/velero-plugin-example/foo.go", removeVeleroPackagePrefix("github.com/velero-io/velero-plugin-example/foo.go"))
}
+2 -2
View File
@@ -26,8 +26,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
crclient "sigs.k8s.io/controller-runtime/pkg/client"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/util"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/util"
)
// PVCPodCache provides a cached mapping from PVC to the pods that use it.
+2 -2
View File
@@ -26,8 +26,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
velerotest "github.com/vmware-tanzu/velero/pkg/test"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
velerotest "github.com/velero-io/velero/pkg/test"
)
func TestGetVolumesToBackup(t *testing.T) {
+2 -2
View File
@@ -20,8 +20,8 @@ import (
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
v1 "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/apis/velero/v2alpha1"
v1 "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/apis/velero/v2alpha1"
)
var VeleroScheme = runtime.NewScheme()
+1 -1
View File
@@ -1,7 +1,7 @@
package restore
import (
api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
api "github.com/velero-io/velero/pkg/apis/velero/v1"
)
func IsResourcePolicyValid(resourcePolicy string) bool {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
)
func TestIsResourcePolicyValid(t *testing.T) {
+1 -1
View File
@@ -20,7 +20,7 @@ import (
appsv1api "k8s.io/api/apps/v1"
corev1api "k8s.io/api/core/v1"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
)
// GetNodeSelectorFromVeleroServer get the node selector from the Velero server deployment
+3 -3
View File
@@ -26,9 +26,9 @@ import (
corev1api "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
velerov1api "github.com/vmware-tanzu/velero/pkg/apis/velero/v1"
"github.com/vmware-tanzu/velero/pkg/builder"
"github.com/vmware-tanzu/velero/pkg/util/boolptr"
velerov1api "github.com/velero-io/velero/pkg/apis/velero/v1"
"github.com/velero-io/velero/pkg/builder"
"github.com/velero-io/velero/pkg/util/boolptr"
)
func TestGetNodeSelectorFromVeleroServer(t *testing.T) {