0xLeo258
e21b21c19e
fix 9234: Add safe VolumeSnapshotterCache
...
Signed-off-by: 0xLeo258 <noixe0312@gmail.com >
2025-09-18 17:21:25 +08:00
Daniel Jiang
249d8f581a
Add include/exclude policy to resources policy
...
fixes #8610
This commit extends the resources policy, such that user can define
resource include exclude filters in the policy and reuse it in different backups.
Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com >
2025-08-05 15:16:59 +08:00
Lyndon-Li
e4caab4086
support cancel for PVB/PVR in backups/restores
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-18 15:58:28 +08:00
Wenkai Yin(尹文开)
7aa8040c09
Run backup post hooks inside ItemBlock synchronously
...
Run backup post hooks inside ItemBlock synchronously as the ItemBlocks are handled asynchronously
Fixes #8516
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2025-02-17 13:27:41 +08:00
Wenkai Yin(尹文开)
e3a64065f1
Merge pull request #8659 from sseago/parallel-itemblocks
...
Implement parallel ItemBlock processing via backup_controller goroutines
2025-02-14 10:42:14 +08:00
Scott Seago
fcfb2fd9ee
Implement parallel ItemBlock processing via backup_controller goroutines
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2025-02-12 12:03:37 -05:00
Wenkai Yin(尹文开)
cdcd6eb99d
Fix WaitGroup panic issue
...
Make sure WaitGroup.Add() is called before WaitGroup.Done() to avoid WaitGroup panic issue
Fixes #8657
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2025-02-12 13:56:05 +08:00
Xun Jiang/Bruce Jiang
10a5b7b702
Merge pull request #8624 from mmorel-35/revive/use-any
...
chore: enable use-any from revive
2025-02-07 15:09:05 +08:00
Lyndon-Li
de170043ea
rename cancel function
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-02-06 10:58:04 +08:00
Lyndon-Li
5fd9df3e2c
refactor pod volume context
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-02-05 16:16:44 +08:00
Matthieu MOREL
1e54f1cb15
chore: enable var-declaration from revive ( #8636 )
...
Run the E2E test on kind / build (push) Failing after 5m28s
Run the E2E test on kind / setup-test-matrix (push) Successful in 3s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Main CI / Build (push) Failing after 33s
Close stale issues and PRs / stale (push) Successful in 8s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 52s
Trivy Nightly Scan / Trivy nightly scan (velero-restore-helper, main) (push) Failing after 56s
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-01-22 15:56:44 -05: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
Wenkai Yin(尹文开)
1f39943291
Check the PVB status via podvolume Backupper rather than calling API server to avoid API server issue
...
Check the PVB status via podvolume Backupper rather than calling API server to avoid API server issue
Fixes #8587
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2025-01-13 12:56:26 +08:00
Scott Seago
4b09b63c2d
Don't include excluded items in ItemBlocks
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2025-01-06 18:11:45 -05:00
Wenkai Yin(尹文开)
14e71fa2cd
Bug fix: increase the WaitGroup counter before start the goroutine
...
Bug fix: increase the WaitGroup counter before start the goroutine
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2024-12-23 17:26:36 +08:00
Wenkai Yin(尹文开)
c43fc42c25
Fix backup post hook issue
...
Fix backup post hook issue
Fixes #8159
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2024-12-13 12:25:45 +08:00
Tiger Kaovilai
04d6c79179
Merge pull request #8471 from vmware-tanzu/8440_fix_main
...
Run the E2E test on kind / build (push) Failing after 6m42s
Run the E2E test on kind / setup-test-matrix (push) Successful in 4s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Main CI / Build (push) Failing after 1m9s
[main] Add nil check for updating DataUpload VolumeInfo in finalizing phase
2024-12-05 01:17:19 -05:00
Scott Seago
015b1e69f6
Make BackedUpItems thread safe
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2024-12-03 15:23:45 -05:00
Xun Jiang
226370d035
Add nil check for updating DataUpload VolumeInfo in finalizing phase.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2024-12-03 10:50:55 +08:00
Shubham Pampattiwar
738bb79a99
Add Backup warning for inclusion of NS managed by ArgoCD
...
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
add changelog file
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
run make update
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
re-position import
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
update argo cd label comment
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
add nil check for backupRequest.Spec.IncludedNamespaces
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
minor fix
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
fix edge cases
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
add gh issue link in code comments
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2024-11-19 16:06:22 -08:00
Scott Seago
9d6f4d2db5
ItemBlock model and phase 1 (single-thread) workflow changes
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2024-09-03 19:04:18 -04:00
lyndon-li
2b018272e6
fix linter check error ( #8014 )
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2024-07-15 09:48:10 -04:00
Scott Seago
dc286a38fc
Reuse existing plugin manager for get/put volume info
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2024-07-12 10:15:16 -04:00
Xun Jiang
df28134e25
Add result in backup VolumeInfo.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-07-02 00:20:36 +08:00
Xun Jiang
a91d2cb036
Modify the volume helper logic.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-05-23 09:57:21 +08:00
allenxu404
28552258ae
Wait for results of restore exec hook executions in Finalizing phase instead of InProgress phase
...
Signed-off-by: allenxu404 <qix2@vmware.com >
2024-04-15 17:49:36 +08:00
Daniel Jiang
0a280e5786
Track and persist restore volume info
...
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2024-04-11 17:32:18 +08:00
Xun Jiang/Bruce Jiang
75962653c5
Merge pull request #7554 from blackpiglet/7357_fix
...
Support update the backup VolumeInfos by the Async ops result.
2024-04-01 11:05:33 +08:00
Xun Jiang
5462035469
Delete the unneeded pvRestorer action in
...
handleSkippedPVHasRetainPolicy
According to comment, calling executePVAction aims to reset PV's
claimRef, but the reset logic was moved into resetVolumeBindingInfo
since release-1.4.
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-03-29 14:12:12 +08:00
Wenkai Yin(尹文开)
8d10b68eda
Improve the concurrency for PVBs in different pods
...
Improve the concurrency for PVBs in different pods
Fixes #6676
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2024-03-29 09:58:50 +08:00
Xun Jiang
b06d7a467f
Support update the backup VolumeInfos by the Async ops result.
...
1. Add PutBackupVolumeInfos method.
2. Add CompletionTimestamp in VolumeInfo.
3. Add Size in SnapshotDataMovementInfo.
4. Update CompletionTimpstmap, SnapshotHandle, RetainedSnapshot
and Size in VolumeInfo on DataUpload Operation completes.
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-03-28 19:52:44 +08:00
Xun Jiang
f5c159ce56
Resolve linter issues.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-11-29 11:15:43 +08:00
Xun Jiang
cddc11e000
Enable linter errchkjson.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-11-29 11:13:46 +08:00
allenxu404
5d1a632be4
Add hook status to backup/restore CR
...
Signed-off-by: allenxu404 <qix2@vmware.com >
2023-11-28 14:47:31 +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
kkothule
6a569ca5b5
Fix status.progress not getting updated for backup
...
Signed-off-by: kkothule <kkothule@catalogicsoftware.com >
2023-05-18 15:31:07 +05:30
Xun Jiang
f051ecaee9
Enable errcheck linter and resolve found issues.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-28 09:33:42 +08:00
Xun Jiang
cb0ada1e1c
Enable staticcheck and resolve found issues.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-25 11:33:40 +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
Xun Jiang
56f93393d8
Modify new scope resource filters name.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-06 18:11:55 +08: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
Daniel Jiang
458560795b
Remove Reference of itemsnapshotter ( #5997 )
...
It will be removed as we choose to use BIAv2 for progress monitoring.
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2023-03-21 09:05:29 +08:00
杨刚 (成都)
ad9c6e8dee
delete io/ioutil package. ( #5955 )
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-03-16 09:25:58 +08: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
Xun Jiang/Bruce Jiang
7d7e3fff0d
Refoctor backup controller with controller-runtime. ( #5969 )
...
Signed-off-by: Ming <mqiu@vmware.com >
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
Co-authored-by: Ming <mqiu@vmware.com >
2023-03-10 08:59:40 +08: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
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
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