Lyndon-Li
34f8b73507
bump up kopia to v0.21.1
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-07-22 15:56:04 +08:00
Shubham Pampattiwar
a73a150d98
Accommodate VGS workflows in PVC CSI plugin
...
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
Add changelog file
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
make update
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
lint fix
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
add unit tests for getVSForPVC func
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
Use v1beta1 instead of v1 v1alpha1
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
go mod tidy
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
update updateVGSCreatedVS func to use retry on conflict
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
make update minor fix
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
fix ut assert
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
Address PR feedback
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
minor updates
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
remove unsused func and add todo for dep upgrades
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2025-07-21 11:36:40 -07:00
Matthieu MOREL
4089a92147
chore: enable usetesting linter
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-06-26 08:05:50 +02:00
Xun Jiang/Bruce Jiang
b0b5cc4236
Remove dependency with VolumeSnapshotClass in DataUpload. ( #9040 )
...
Run the E2E test on kind / build (push) Failing after 6m30s
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 1m0s
Close stale issues and PRs / stale (push) Successful in 19s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m40s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 1m29s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-gcp, main) (push) Failing after 1m41s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-microsoft-azure, main) (push) Failing after 1m39s
Don't add VSClass in the additionalItems when it's empty.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
Signed-off-by: xun.jiang <xun.jiang@broadcom.com >
2025-06-25 15:36:15 -04: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
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
Xun Jiang
1b7175394a
Skip VS and VSC not created by backup.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-06-07 10:51:05 +08:00
Xun Jiang
2d71430e80
Skip namespace in terminating state in backup resource collection.
...
To make sure resources in terminating namespaces are not included.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-05-29 10:32:32 +08:00
Matthieu MOREL
c6a420bd3a
chore: define common aliases for k8s packages ( #8672 )
...
Run the E2E test on kind / build (push) Failing after 6m48s
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 35s
Close stale issues and PRs / stale (push) Successful in 8s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m11s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 47s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-gcp, main) (push) Failing after 49s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-microsoft-azure, main) (push) Failing after 43s
* lchore: define common alias for k8s packages
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update .golangci.yaml
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update .golangci.yaml
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update .golangci.yaml
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
---------
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-04-22 06:14:47 -04:00
Shubham Pampattiwar
0eb1040a0a
Add labels as a criteria for volume policy ( #8713 )
...
Run the E2E test on kind / build (push) Failing after 6m23s
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 38s
Close stale issues and PRs / stale (push) Successful in 9s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m5s
Trivy Nightly Scan / Trivy nightly scan (velero-restore-helper, main) (push) Failing after 55s
* Add labels as a criteria for volume policy
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
add changelog file
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
handle err
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
use labels selector.matches
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
make update
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
remove fetching pvc from volume policy filtering
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
add more ut coverage
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
* minor updates
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
use VolumeFilterData struct in GetMatchAction func
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
update parsePVC func and add more ut
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
lint fix
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
---------
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2025-02-26 10:02:45 -05:00
Xun Jiang
6b7dd12bf7
Modify VS and VSC restore actions.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-02-25 10:44:45 +08:00
Xun Jiang
eb77151f48
Delete VSC after backup completes.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-02-19 14:36:59 +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
Matthieu MOREL
05765fb2fd
golangci-lint: enable int-conversion and fiximports rule of perfsprint
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-01-09 22:31:29 +00: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
aed944cb0e
Merge pull request #8257 from shubham-pampattiwar/add-warn-argocd
...
Run the E2E test on kind / build (push) Failing after 15m53s
Run the E2E test on kind / setup-test-matrix (push) Successful in 1m27s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Main CI / Build (push) Failing after 13m40s
Close stale issues and PRs / stale (push) Failing after 11m56s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 11m56s
Trivy Nightly Scan / Trivy nightly scan (velero-restore-helper, main) (push) Failing after 11m54s
Add Backup warning for inclusion of NS managed by ArgoCD
2024-11-19 20:21:17 -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
Wenkai Yin(尹文开)
23ca089d40
Use '"' rather than '`' in the log to avoid unexpected new line
...
Use '"' rather than '`' in the log to avoid unexpected new line
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2024-10-09 14:44:13 +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
Scott Seago
1228b41851
Internal ItemBlockAction plugins
...
This PR implements the internal ItemBlockAction plugins needed for pod, PVC, and SA.
Signed-off-by: Scott Seago <sseago@redhat.com >
2024-08-09 12:24:55 -04: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
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/Bruce Jiang
6fb109f620
Merge pull request #7965 from blackpiglet/7928_fix
...
Check whether the namespaces specified in namespace filter exist.
2024-07-10 18:30:01 +08:00
Xun Jiang
cf5dfdf42d
Check whether the namespaces specified in namespace filter exist.
...
Check whether the namespaces specified in the
backup.Spec.IncludeNamespaces exist during backup resource collcetion
If not, log error to mark the backup as PartiallyFailed.
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-07-04 10:02:10 +08:00
Xun Jiang
c4ce6a3382
Expose the VolumeHelper to third-party plugins.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-07-03 11:16:56 +08: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/Bruce Jiang
d9c9f77860
Merge pull request #7671 from mmorel-35/testifylint/compare
...
testifylint: enable compares rule
2024-05-27 12:45:16 +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
Matthieu MOREL
1010b04821
testifylint: enable compares rule
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-05-16 20:18:43 +00:00
lyndon-li
01a2d952ac
Merge pull request #7664 from shubham-pampattiwar/vol-policy-extension-impl
...
Extend Volume Policies feature to support more actions
2024-04-24 13:39:36 +08:00
Shubham Pampattiwar
8d2bef2486
Extend Volume Policies feature to support more actions
...
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
fix volume policy action execution
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
remove unused files
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
add changelog file
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
fix CI linter errors
fix linter errors
address pr review comments
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
fix via make update cmd
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
address PR feedback and add tests
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
fix codespell
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
fix ci linter checks
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
remove volsToExclude processing from volume policy logic and add tests
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
fix ci linter issue
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2024-04-23 12:54:14 -07:00
Xun Jiang
884bcbec98
Fix the typecheck error reported by the lint GitHub action.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-04-19 18:41:16 +08:00
Xun Jiang
2eeaf4d55e
Modify namespace filter logic for backup with label selector.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-04-18 10:30:59 +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