Wenkai Yin(尹文开)
ee43d040a6
Return directly if no pod volme backup are tracked
...
Return directly if no pod volme backup are tracked
Fixes #8723
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2025-02-27 16:56:03 +08: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
Wenkai Yin(尹文开)
a45c9f27e8
Merge pull request #8715 from Lyndon-Li/issue-fix-8706
...
Run the E2E test on kind / build (push) Failing after 6m45s
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 36s
Close stale issues and PRs / stale (push) Successful in 9s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 55s
Trivy Nightly Scan / Trivy nightly scan (velero-restore-helper, main) (push) Failing after 44s
Issue 8706: for immediate volumes, get node from volumeattachment
2025-02-25 14:25:45 +08:00
Xun Jiang/Bruce Jiang
f79b825cf1
Merge pull request #8684 from blackpiglet/7979_fix
...
7979 fix
2025-02-25 13:27:01 +08:00
Xun Jiang/Bruce Jiang
ad08c7a3ff
Merge pull request #8712 from sseago/pod-initcontainer-securitycontext
...
Copy SecurityContext from Containers[0] if present for PVR
2025-02-25 11:02:57 +08:00
lyndon-li
564e77465b
Merge pull request #8581 from kaovilai/configKopiaMaintInterval
...
Configurable Kopia Maintenance Interval
2025-02-25 10:56:23 +08: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
Scott Seago
21db5f8853
Copy SecurityContext from Containers[0] if present for PVR
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2025-02-24 15:23:29 -05:00
lyndon-li
9295be4cc0
Merge pull request #8714 from kaovilai/gitignore_debug.test
...
Run the E2E test on kind / build (push) Failing after 5m44s
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 1m8s
Trivy Nightly Scan / Trivy nightly scan (velero-restore-helper, main) (push) Failing after 43s
Ignore debug.test* from vscode debug
2025-02-24 14:20:52 +08:00
Tiger Kaovilai
178b6e3db5
add more maintenance interval unit tests
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-21 14:22:11 -06:00
Lyndon-Li
bf0d909524
issue 8706: for immediate volumes, get node from volumeattachment
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-02-21 13:27:44 +08:00
Tiger Kaovilai
1e6af39458
Ignore debug.test* from vscode debug
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-20 19:40:39 -06:00
Tiger Kaovilai
3fb8c72b6c
empty string case
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-20 16:40:49 -06:00
Tiger Kaovilai
92617d07c5
log only if not equal
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-20 16:40:49 -06:00
Tiger Kaovilai
1b7d9014a5
add to unmarshal test
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-20 16:40:49 -06:00
Tiger Kaovilai
f93eed56ca
doc update, move under kopia repo header
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-20 16:40:49 -06:00
Tiger Kaovilai
271ff180e9
lint
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-20 16:40:48 -06:00
Tiger Kaovilai
beb392e0db
doc updates
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-20 16:40:48 -06:00
Tiger Kaovilai
21ae1cbe82
Address https://github.com/vmware-tanzu/velero/pull/8581#pullrequestreview-2622445640
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-20 16:40:48 -06:00
Tiger Kaovilai
3bb39d9331
Address https://github.com/vmware-tanzu/velero/pull/8581#pullrequestreview-2622443771
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-20 16:40:48 -06:00
Tiger Kaovilai
c153651044
Pass all backupRepoConfig keys to storageVariables, and thus RepoOptions.
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-20 16:40:48 -06:00
Tiger Kaovilai
5a79e70d79
Configurable Kopia Maintenance Interval
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
comment update
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
comment
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-20 16:40:48 -06:00
Shubham Pampattiwar
0f81772e83
Merge pull request #8503 from shubham-pampattiwar/vp-design-label-criteria
...
Run the E2E test on kind / build (push) Failing after 5m49s
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 1m1s
Trivy Nightly Scan / Trivy nightly scan (velero-restore-helper, main) (push) Failing after 54s
Design to add label selector as a criteria for volume policy
2025-02-20 14:21:44 -08:00
Shubham Pampattiwar
62889238ed
Design to add label selector 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 >
use pvc labels for vp criteria
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
update design
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
add examples and update non-goals
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2025-02-20 11:51:47 -08:00
Lyndon-Li
cf58cc8fb2
Merge branch 'main' into issue-fix-8706
2025-02-20 19:20:45 +08:00
Lyndon-Li
e2a7986629
issue 8706: for immediate volumes, get node from volumeattachment
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-02-20 19:19:28 +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
Xun Jiang
620a116e7f
Modify CSI related DeleteItemActions.
...
Remove the VS DIA.
Modify the VSC DIA: create then delete the VSC.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-02-19 14:36:59 +08:00
Xun Jiang
3843ae7030
Delete VolumeSnapshotContent from the backup sync process.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-02-19 14:36:59 +08:00
Daniel Jiang
e64806a651
Merge pull request #8695 from blackpiglet/golangci_config_fix
...
Run the E2E test on kind / build (push) Failing after 5m42s
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 34s
Close stale issues and PRs / stale (push) Successful in 7s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 55s
Trivy Nightly Scan / Trivy nightly scan (velero-restore-helper, main) (push) Failing after 57s
Modify golangci configuration to make it work.
2025-02-19 14:26:16 +08:00
Wenkai Yin(尹文开)
82e3b1190c
Merge pull request #8703 from ywk253100/250213_makefile
...
Update Makefile to support pushing images to an insecure registry
2025-02-19 14:16:49 +08:00
Xun Jiang
e736ef71df
Modify golangci configuration to make it work.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-02-19 13:58:04 +08:00
Xun Jiang/Bruce Jiang
2b0c5094bd
Merge pull request #8700 from kaovilai/kind-containerdv2-skip
...
e2e: skip more containerdv2 kind images
2025-02-19 13:55:46 +08:00
Wenkai Yin(尹文开)
bca5e55620
Update Makefile to support pushing images to an insecure registry
...
Update Makefile to support pushing images to an insecure registry
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2025-02-19 11:22:47 +08:00
Wenkai Yin(尹文开)
80cea31a84
Merge pull request #8694 from ywk253100/250214_hook
...
Run the E2E test on kind / build (push) Failing after 5m44s
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 36s
Close stale issues and PRs / stale (push) Successful in 7s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 57s
Trivy Nightly Scan / Trivy nightly scan (velero-restore-helper, main) (push) Failing after 51s
Run backup post hooks inside ItemBlock synchronously
2025-02-18 14:37:27 +08:00
Tiger Kaovilai
4c6fedd563
e2e: skip more containerdv2 kind images
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-17 21:30:56 -06:00
Tiger Kaovilai
a3cee616dc
Upgrade go.mod k8s.io/ go.mod to v0.31.3 and set klog.SetLogger() for client-go ( #8450 )
...
Run the E2E test on kind / build (push) Failing after 5m44s
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
build-image / Build (push) Failing after 10s
Main CI / Build (push) Failing after 31s
Close stale issues and PRs / stale (push) Successful in 7s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 59s
Trivy Nightly Scan / Trivy nightly scan (velero-restore-helper, main) (push) Failing after 45s
Also bumped to support upgraded k8s.io/ deps.
- controller-gen to v0.16.5
- sigs.k8s.io/controller-runtime v0.19.2
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-02-17 15:05:10 -05: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
Tiger Kaovilai
9235fe1eb1
Merge pull request #8676 from blackpiglet/7979_design
...
Run the E2E test on kind / build (push) Failing after 5m3s
Run the E2E test on kind / setup-test-matrix (push) Successful in 2s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Main CI / Build (push) Failing after 34s
Close stale issues and PRs / stale (push) Successful in 8s
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 the design of cleaning artifacts generated during CSI B/R
2025-02-14 08:19:07 -06:00
Daniel Jiang
d9721fddb5
Merge pull request #8665 from aj-2000/user/aj-2000/validate-from-schedule-flag
...
Run the E2E test on kind / build (push) Failing after 5m7s
Run the E2E test on kind / setup-test-matrix (push) Successful in 2s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Main CI / Build (push) Failing after 32s
Validate `--from-schedule` flag in create backup command
2025-02-14 18:57:39 +08:00
Xun Jiang/Bruce Jiang
c0c4407657
Merge pull request #8681 from blackpiglet/8238_fix
...
Run the E2E test on kind / build (push) Failing after 5m41s
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 36s
Don't run maintenance on the ReadOnly BackupRepositories.
2025-02-14 11:32:49 +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
Xun Jiang/Bruce Jiang
a6ae21e7a3
Add the design of cleaning artifacts generated during CSI B/R
...
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com >
2025-02-13 15:45:43 +08:00
Xun Jiang/Bruce Jiang
fa156c3961
Don't run maintenance on the ReadOnly BackupRepositories.
...
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com >
2025-02-13 13:46:53 +08:00
Wenkai Yin(尹文开)
e446d92d4c
Merge pull request #8464 from shubham-pampattiwar/obj-status-restore-impl
...
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 35s
Close stale issues and PRs / stale (push) Successful in 7s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 56s
Trivy Nightly Scan / Trivy nightly scan (velero-restore-helper, main) (push) Failing after 50s
Allowing Object-Level Resource Status Restore
2025-02-13 13:37:58 +08:00
Wenkai Yin(尹文开)
c8e623864f
Merge pull request #8679 from ywk253100/250211_waitgroup
...
Run the E2E test on kind / build (push) Failing after 5m33s
Run the E2E test on kind / setup-test-matrix (push) Successful in 2s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Main CI / Build (push) Failing after 35s
Fix WaitGroup panic issue
2025-02-13 11:05:05 +08:00
Shubham Pampattiwar
893621c1ad
Allowing Object-Level Resource Status Restore
...
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
add changelog
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
Update impl according to design
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
make update
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
update logging
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2025-02-12 18:59:25 -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
Daniel Jiang
79707aaa60
Merge pull request #8403 from shubham-pampattiwar/status-restore-cr-design
...
Run the E2E test on kind / build (push) Failing after 5m36s
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 1m3s
Trivy Nightly Scan / Trivy nightly scan (velero-restore-helper, main) (push) Failing after 50s
Add Design for Allowing Object-Level Resource Status Restore
2025-02-11 19:46:30 +08:00