Matthieu MOREL
4089a92147
chore: enable usetesting linter
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-06-26 08:05:50 +02:00
Matthieu MOREL
07ea14962c
fix require-error rule from testifylint
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-06-23 15:39:54 +00:00
Matthieu MOREL
59825a0506
fix len rule from testifylint
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-06-22 22:41:08 +02:00
Matthieu MOREL
cbba3bdde7
chore: enable use-any from revive
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-01-17 07:58:10 +01:00
Lyndon-Li
d48e9762eb
data mover ms new controller
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2024-07-31 13:24:16 +08:00
lyndon-li
53b57f8bdf
Merge pull request #7999 from Lyndon-Li/data-mover-ms-watcher-01
...
Data mover micro-service watcher
2024-07-26 10:10:07 +08:00
Lyndon-Li
faa704d909
data mover ms watcher
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2024-07-25 10:47:52 +08:00
Matthieu MOREL
c8baaa9b11
testifylint: enable more rules ( #8024 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-07-18 10:43:16 -04:00
Matthieu MOREL
35c90f1672
testifylint: enable error-nil rule ( #7670 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-07-16 12:23:16 -04:00
Matthieu MOREL
aa3fde5ea5
testifylint: enable bool-compare rule ( #7623 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-07-16 09:28:23 -04:00
Shashank Singh
a318e1da99
Fix floatation of error/message in the backup result. ( #7159 )
...
* Fix floatation of error/message in the backup/restore result
Signed-off-by: Shashank Singh <shashank1306s@gmail.com >
* fix for checkgates
Signed-off-by: Shashank Singh <shashank1306s@gmail.com >
* refactoring
Signed-off-by: Shashank Singh <shashank1306s@gmail.com >
---------
Signed-off-by: Shashank Singh <shashank1306s@gmail.com >
2023-12-01 09:50:01 +05:30
Tiger Kaovilai
05722876b9
Moving kopia logging to remove kopia from indirect dependency in velero plugins
...
when running `go mod why -m github.com/kopia/kopia` in velero-plugins prior to this change you will see following
```
❯ go mod why -m github.com/kopia/kopia
github.com/konveyor/openshift-velero-plugin/velero-plugins
github.com/vmware-tanzu/velero/pkg/plugin/framework
github.com/vmware-tanzu/velero/pkg/util/logging
github.com/kopia/kopia/repo/logging
```
after
```
❯ go mod why -m github.com/kopia/kopia
(main module does not need module github.com/kopia/kopia)
```
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2023-07-12 10:44:33 -04:00
Lyndon-Li
217b1dd066
add UT for pkg/util
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-06-08 14:00:58 +08:00
Lyndon-Li
307b82a2ec
bump up kopia v0.13.0
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-05-15 07:23:38 +08:00
Lyndon-Li
2dc8a920ca
fix issue 5972
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-03-24 14:41:22 +08:00
Xun Jiang/Bruce Jiang
15d44724e7
Modify golangci.yaml file. Resolve found lint issues. ( #6008 )
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
Co-authored-by: Xun Jiang <blackpiglet@gmail.com >
2023-03-24 12:15:08 +08:00
Lyndon-Li
115f32cae5
remove merged back deprecate code
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-03-21 09:56:52 +08:00
Lyndon-Li
40aae5ebdd
fix issue 5935
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-03-09 14:24:51 +08:00
Anshul Ahuja
8c3ddf0f73
Publish backup results extracted from backup logs
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-02-16 09:57:53 +05:30
Lyndon-Li
a90ba3db7c
kopia pvbr smoking test changes
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-09-07 13:22:49 +08:00
Lyndon-Li
3769cd218a
kopia lib
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-08-26 15:25:20 +08:00
Benoit Gagnon
5d2c9e2ba1
Override logrus.ErrorKey when json logging is enabled ( #2830 )
...
* override logrus.ErrorKey when json logging is enabled
Signed-off-by: Benoit Gagnon <benoit.gagnon@ubisoft.com >
* document the logrus.ErrorKey override
Signed-off-by: Benoit Gagnon <benoit.gagnon@ubisoft.com >
* add changelog entry
Signed-off-by: Benoit Gagnon <benoit.gagnon@ubisoft.com >
2020-08-18 13:53:45 -04:00
Steve Kriss
5cc6c12eb4
don't return an error from log hook if value is not an error type
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2020-04-30 15:30:22 -06:00
Steve Kriss
48792ece1f
Updates for org move to vmware-tanzu ( #1920 )
...
* update import paths to github.com/vmware-tanzu/...
Signed-off-by: Steve Kriss <krisss@vmware.com >
* update other GH org refs to vmware-tanzu
Signed-off-by: Steve Kriss <krisss@vmware.com >
* site and docs: update GH org to vmware-tanzu
Signed-off-by: Steve Kriss <krisss@vmware.com >
* update travis badge links on docs readmes
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-09-30 17:26:56 -04:00
carthewd
22eca22ac8
Add JSON as an option for log output ( #1654 )
...
* Add JSON as an option for log output
Signed-off-by: Donovan Carthew <donovan.carthew@gmail.com >
2019-07-30 16:29:34 -07:00
Steve Kriss
8392e6d83f
add PartiallyFailed phase for backups, log+continue on errors ( #1386 )
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-04-26 09:14:26 -07:00
Nolan Brubaker
3f2c28f6bb
Merge pull request #1301 from skriss/plugins-error-location
...
log error locations from plugin logger and don't overwrite in client
2019-03-27 11:21:52 -04:00
Steve Kriss
7b0d8217de
send plugin error stack traces over gRPC and log error locations
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-03-27 08:34:03 -06:00
Steve Kriss
ff2db31b32
log error locations from plugin logger and don't overwrite in client
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-03-20 16:13:37 -06:00
Steve Kriss
a111eed2af
update license headers to Velero contributors ( #1302 )
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-03-20 12:32:48 -07:00
Nolan Brubaker
43714caaec
Rename Ark to Velero!!!
...
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2019-02-04 17:35:22 -05:00
Andy Goldstein
130512187a
Refactor plugin management
...
Refactor plugin management:
- support multiple plugins per executable
- support restarting a plugin process in the event it terminates
- simplify plugin lifecycle management by using separate managers for
each scope (server vs backup vs restore)
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2018-07-31 08:34:57 -07:00
Andy Goldstein
cc9140b3cc
Log to stdout instead of stderr
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2018-06-14 14:02:12 -04:00
Steve Kriss
50d4084fac
add restic integration for doing pod volume backups/restores
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-06-06 09:48:10 -07:00
Steve Kriss
1503796419
make language and casing consistent across copyrights
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-01-02 10:51:49 -08:00
Steve Kriss
3641c2c043
update all license headers
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-12-15 13:38:12 -08:00
Andy Goldstein
99f67db39d
Fix log location hook prefix stripping
...
The log location hook was matching github.com/heptio/ark and stripping
off that + 1 more char. This meant that
github.com/heptio/ark-plugin-example/foo.go was being listed as
plugin-example/foo.go instead of
github.com/heptio/ark-plugin-example/foo.go.
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2017-11-29 12:56:01 -05:00
Steve Kriss
179b95c81d
convert restorers to plugins
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-11-28 10:58:12 -08:00
Andy Goldstein
4c481f4d23
Make logSource more concise
...
Strip off leading .../github.com/heptio/ark/
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2017-11-14 14:21:19 -05:00
Steve Kriss
8ba5a29679
add a logger that can be used within plugins to emit logs into Ark server
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-11-14 10:38:26 -08:00
Steve Kriss
7c0d9dcfce
add missing licenses
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-10-10 13:14:03 -07:00
Steve Kriss
e7c62b5f38
add file/line numbers to logs
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-10-10 13:14:03 -07:00
Steve Kriss
9ac71b03cc
add logrus hook to log error file/line/function from stack traces
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-10-05 08:49:33 -07:00