Lyndon-Li
a8c76a4a00
issue: move plugin depdending podvolume functions to util pkg
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-09-27 11:29:02 +08:00
Xun Jiang/Bruce Jiang
1777bbe5b4
Add warning log for snapshot data mover fell backup to Velero native snapshot. ( #6602 )
...
Enlarge throttle of UT case TestThrottle_ShouldOutput to avoid occasional CI
failure due to timeout caused by test environment's CPU speed
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-08-04 18:09:21 +08:00
Daniel Jiang
2548b20db9
Track the skipped PV in a backup and print the summary in backup log ( #6496 )
...
Partially address the requirements in #5834
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2023-07-20 16:13:48 +08:00
kayrus
e71ee0cc5f
Add support for OpenStack CSI drivers topology keys
...
Signed-off-by: kayrus <kayrus@users.noreply.github.com >
2023-07-05 17:27:24 +02:00
Peter Pan
a97d01f7e6
Fix the snapshot log wording to be more accurate ( #6395 )
...
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io >
2023-06-30 08:14:10 +08:00
Xun Jiang
a5c28ad423
Add warning message for volume snapshotter in data mover case.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-06-12 17:57:01 +08:00
Xun Jiang/Bruce Jiang
a8a17d725a
Merge pull request #6194 from blackpiglet/linter_more
...
Enable more linters, and remove mal-functioned milestoned issue action.
2023-04-26 14:12:47 +08:00
Xun Jiang
443f732e51
Enable more linters, and remove mal-functioned milestoned issue action.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-25 23:31:51 +08:00
Xun Jiang
180cc4e31d
Enable linter revive and resolve found errors: part 1
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-25 23:15:15 +08:00
Xun Jiang/Bruce Jiang
1fd28e8a36
Fix usestdlibvars and whitespace linters issues. ( #6162 )
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
Co-authored-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-24 09:10:55 +08:00
Daniel Jiang
95c674b23a
Refine the log message when BIA is skipped
...
The log message should be clarified, otherwise when a user chooses to do
the backup via podvolme there will be confusing logs, but actually it's
just skipping the BIA for CSI plugin.
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2023-04-02 23:31:19 +08:00
Ming
83f176e4ac
Fix resource policies not work for vSphere plugin
...
Signed-off-by: Ming <mqiu@vmware.com >
2023-03-29 04:14:34 +00:00
Daniel Jiang
82358666c8
Merge pull request #6009 from qiuming-best/resource-policies
...
Adjust match resource policies
2023-03-24 10:48:50 +08:00
Ming
a3cef5b0d3
Adjust match resource policies
...
Signed-off-by: Ming <mqiu@vmware.com >
2023-03-23 03:48:26 +00:00
Scott Seago
433d2d5e57
BIA/RIAv2 -- distinguish between New and InProgress operations
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2023-03-21 18:55:59 -04:00
qiuming
086dbd344f
Handle backup of volume by resource policies ( #5901 )
...
* Handle backup of volume by resource policies
Signed-off-by: Ming <mqiu@vmware.com >
2023-03-21 14:39:25 +08:00
lyndon
81bee240fe
Merge pull request #5982 from qiuming-best/fix-empty-volume-id
...
Fix take snapshot for PV with empty volume ID
2023-03-20 16:33:49 +08:00
Ming
10ae2b3e3a
Fix take snapshot for PV without volume ID
...
Signed-off-by: Ming <mqiu@vmware.com >
2023-03-20 06:38:16 +00:00
Xun Jiang
a1e4f54488
Add new resource filters can separate cluster and namespace scope resources.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-03-14 07:07:22 +00:00
Scott Seago
dd63e8182c
Follow-on fixes for BIAv2 controller work
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2023-03-13 10:29:36 -04:00
Scott Seago
c3d1d83da5
BIAv2 async operations controller work
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2023-03-01 11:49:17 -05:00
Lyndon-Li
08b8498afb
fix issue 5881
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-02-21 19:17:38 +08:00
Lyndon-Li
2c4cfe5611
Merge branch 'main' into issue-fix-5458
2023-01-16 17:46:58 +08:00
Scott Seago
9a54142257
BackupItemAction v2 API implementation
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2023-01-09 18:36:47 -05:00
Lyndon-Li
b51a17138e
fix issue 5458
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-12-01 15:12:07 +08:00
Lyndon-Li
5f7f69366c
remove restic from code
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-10-13 13:45:32 +08:00
Daniel Jiang
28c543a9ec
Skip the exclusion check for additional resources returned by BIA
...
This commit provides a simple contract that if the BackupItemAction
plugin sets an annotation in a resource it has handled, the additional
items will considered "must include" i.e. each of them will skip the
"include-exclude" filter, such that the plugin developer can make sure
they are included in the backup disregarding the filter setting in the
bakcup CR.
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2022-10-11 12:03:44 +08:00
Xun Jiang/Bruce Jiang
b7f5cbd0c0
Merge pull request #5318 from sseago/volumesnapshotter-refactor
...
plugin versioning v1 refactor for VolumeSnapshotter
2022-09-23 09:54:01 +08:00
lyndon
c81f0db886
rename pvbr param ( #5370 )
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-09-23 09:13:36 +08:00
Scott Seago
b6088356e6
plugin versioning v1 refactor for VolumeSnapshotter
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2022-09-21 13:47:23 -04:00
Wenkai Yin(尹文开)
092fc01e8d
Splic pkg/restic package ( #5143 )
...
This commit splits the pkg/restic package into several packages to support Kopia integration works
Fixes #5055
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-08-05 17:15:38 +08:00
niulechuan
fb897471c0
Move 'velero.io/exclude-from-backup' label string to const ( #5053 )
...
* move 'velero.io/exclude-from-backup' label name to const
Signed-off-by: Niu Lechuan <lechuan.niu@daocloud.io >
* add changelog file (in changelogs/unreleased) of this PR
Signed-off-by: Niu Lechuan <lechuan.niu@daocloud.io >
2022-07-04 14:31:20 +08:00
Xun Jiang
5c74aa22e6
Avoid duplicated snapshotting, when CSI is enabled
...
Fix #4758
Do not take snapshot for PV to avoid duplicated snapshotting, when CSI feature is enabled.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-04-07 23:32:48 +08:00
Xun Jiang
4c8d1c2693
Modify according to comments
...
1. rename zoneSeparator to gkeZoneSeparator
2. add example of regional PV's node affinity. modify test case description.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-02-22 16:23:10 +08:00
Xun Jiang
7be12a9220
[fix] Add regional PV support for GKE
...
fix #4663 .
For GKE pv, when create backup, return all zones retrived from node affinity.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-02-21 22:04:21 +08:00
David L. Smith-Uchida
5677e04bb1
Consolidated code for resolving actions and plugins into ActionResolver ( #4410 )
...
* Consolidated code for resolving actions and plugins into ActionResolver. Added BackupWithResolvers and
RestoreWithResolvers. Introduces ItemSnapshooterResolver to bring ItemSnapshotter plugins into backup and
restore. ItemSnapshotters are not used yet.
Added action_resolver_test
Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com >
* Addressed review comments
Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com >
2021-12-10 12:53:47 -05:00
Daniel Jiang
748cf86aa7
Add the key for GKE zone for AZ collection
...
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2021-11-20 15:58:31 +08:00
Daniel Jiang
5878a52843
Read Availability zone from nodeAffinity requirements
...
Velero to read the AZ info from `NodeAffinity` of a PV when it's taking
the snapshot.
Fixes #4332
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2021-11-16 09:44:12 +08:00
Mateusz Gozdek
dbc83af77b
Fix various typos found by codespell ( #3057 )
...
By running the following command:
codespell -S .git,*.png,*.jpg,*.woff,*.ttf,*.gif,*.ico -L \
iam,aks,ist,bridget,ue
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com >
2020-11-10 11:48:35 -05:00
Benoit Gagnon
0e8a7a23cb
always use groupResource.String() when logging ( fixes #2795 ) ( #2796 )
...
Signed-off-by: Benoit Gagnon <benoit.gagnon@ubisoft.com >
2020-08-06 10:10:59 -07:00
Nolan Brubaker
bbcbde084d
Create hook package ( #2734 )
...
* Move pkg/backup/item_hook_handler to internal/hoo
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Add internal packages to test target
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2020-07-22 14:26:14 -07:00
Ashish Amarnath
3d3b9e312a
Revert " 🐛 fix file perissions on the manifest JSON in backup archive ( #2685 )" ( #2700 )
...
dae5230aae
Signed-off-by: Ashish Amarnath <ashisham@vmware.com >
2020-07-10 14:07:05 -07:00
Ashish Amarnath
dae5230aae
🐛 fix file perissions on the manifest JSON in backup archive ( #2685 )
...
Signed-off-by: Ashish Amarnath <ashisham@vmware.com >
2020-07-08 06:37:59 -07:00
Ashish Amarnath
b4465e92b8
🐛 Use CRD version prior to remap_crd_version backup item action ( #2683 )
...
* 🐛 preserve crd version before remapping
Signed-off-by: Ashish Amarnath <ashisham@vmware.com >
2020-07-07 10:59:41 -07:00
Ashish Amarnath
e5e7c025dd
fix copyright boilerplate
...
Signed-off-by: Ashish Amarnath <ashisham@vmware.com >
2020-06-18 14:14:15 -07:00
Ashish Amarnath
b0fd3d35c1
rename field
...
Signed-off-by: Ashish Amarnath <ashisham@vmware.com >
2020-06-15 15:26:44 -07:00
Ashish Amarnath
8a2a852b87
use backup's defaultRestic flag to identify pod volumes using restic
...
Signed-off-by: Ashish Amarnath <ashisham@vmware.com >
2020-06-15 14:46:06 -07:00
Steve Kriss
1c80ba903e
don't error during backup when additional items returned by plugin don't exist ( #2595 )
...
* log a warning instead of erroring if additional item can't be found
Signed-off-by: Steve Kriss <krisss@vmware.com >
* always show backup warning/error count in get/describe
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
2020-06-04 16:29:55 -07:00
Steve Kriss
30ca0e4322
split out collecting items from backing up items
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2020-05-01 15:30:42 -06:00
Steve Kriss
19c52434b4
simplify group/resource/item backupper structure
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2020-05-01 15:29:01 -06:00