chore: replace vmware-tanzu/velero org references

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

Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-22 07:38:02 +00:00
committed by GitHub
co-authored by kaovilai
parent d987388698
commit 0b7eaaf4e6
1309 changed files with 4405 additions and 4405 deletions
+1 -1
View File
@@ -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"))
}