Tiger Kaovilai
f4233c0f9f
CLI automatically discovers and uses cacert from BSL for download requests
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
feat: Add CA cert fallback when caCertFile fails in download requests
- Fallback to BSL cert when caCertFile cannot be opened
- Combine certificate handling blocks to reuse CA pool initialization
- Add comprehensive unit tests for fallback behavior
This improves robustness by allowing downloads to proceed with BSL CA cert
when the provided CA cert file is unavailable or unreadable.
🤖 Generated with [Claude Code](https://claude.ai/code )
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
Co-Authored-By: Claude <noreply@anthropic.com >
2025-07-29 22:25:52 -04:00
Amos Mastbaum
687dcf69e7
csi pvc backup action
...
Signed-off-by: Amos Mastbaum <68001528+amastbau@users.noreply.github.com >
Update pvc_action.go
Signed-off-by: Amos Mastbaum <68001528+amastbau@users.noreply.github.com >
Update pvc_action.go
Signed-off-by: Amos Mastbaum <68001528+amastbau@users.noreply.github.com >
Adding missing test covarage + log mesasgae as suggested
Signed-off-by: Amos Mastbaum <68001528+amastbau@users.noreply.github.com >
Adding missing test covarage + log mesasgae as suggested
Signed-off-by: Amos Mastbaum <68001528+amastbau@users.noreply.github.com >
2025-07-28 14:57:02 +08:00
Xun Jiang/Bruce Jiang
21fa637f17
Merge pull request #9112 from Lyndon-Li/fs-backup-doc-refactor
...
Refactor fs-backup doc
2025-07-28 14:38:20 +08:00
Xun Jiang/Bruce Jiang
fb6ff2aa66
Merge pull request #9113 from Lyndon-Li/csi-snapshot-data-movement-doc-update
...
Run the E2E test on kind / build (push) Failing after 12m23s
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 1m11s
CSI snapshot data movement doc update
2025-07-28 11:05:12 +08:00
Wenkai Yin(尹文开)
63ebd4e51b
Return error if timeout when checking server version ( #9111 )
...
Run the E2E test on kind / build (push) Failing after 8m20s
Run the E2E test on kind / setup-test-matrix (push) Successful in 5s
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 33s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 3m59s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 1m25s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-gcp, main) (push) Failing after 1m40s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-microsoft-azure, main) (push) Failing after 1m58s
Return error if timeout when checking server version
Fixes #8620
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2025-07-25 12:31:55 -04:00
Lyndon-Li
191b943906
refactor fs-backup doc
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-07-25 18:28:39 +08:00
Lyndon-Li
ea21a49636
update CSI snapshot data movement doc for host path disable
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-07-25 18:17:08 +08:00
Tiger Kaovilai
1daa685e7d
Make ResticIdentifier optional for kopia repositories ( #8987 )
...
The ResticIdentifier field in BackupRepository is only relevant for restic
repositories. For kopia repositories, this field is unused and should be
omitted. This change:
- Adds omitempty tag to ResticIdentifier field in BackupRepository CRD
- Updates controller to only populate ResticIdentifier for restic repos
- Adds tests to verify behavior for both restic and kopia repository types
This ensures backward compatibility while properly handling kopia repositories
that don't require a restic-compatible identifier.
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-07-24 22:25:09 -04:00
Xun Jiang
a61a073aea
Avoid checking the VS and VSC status in the backup finalizing phase.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-07-24 13:28:05 +08:00
Shubham Pampattiwar
aa2e09c69e
Update Backup describe string for DefaultVolumesToFSBackup flag ( #9105 )
...
Run the E2E test on kind / build (push) Failing after 7m54s
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
add changelog file
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2025-07-23 17:55:28 -04:00
Xun Jiang/Bruce Jiang
770ff142d7
Add imagePullSecrets inheritage for VGDP pod and maintenance job. ( #9096 )
...
Run the E2E test on kind / build (push) Failing after 8m21s
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 42s
Close stale issues and PRs / stale (push) Successful in 21s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m49s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 1m17s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-gcp, main) (push) Failing after 3m30s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-microsoft-azure, main) (push) Failing after 3m12s
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-07-23 13:55:16 -04:00
Shubham Pampattiwar
60a6c7384f
Fix missing defaultVolumesToFsBackup flag output in Velero describe backup cmd ( #9056 )
...
add changelog file
Show defaultVolumesToFsBackup in describe only when set by the user
minor ut fix
minor fix
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2025-07-23 09:59:51 -04:00
lyndon-li
9b721a8251
Merge branch 'main' into issue-fix-9077
2025-07-23 15:05:22 +08:00
lyndon-li
48033b2e3b
Merge pull request #9098 from Lyndon-Li/bump-up-kopia-0.21.1
...
Bump up Kopia to v0.21.1
2025-07-23 15:03:32 +08:00
longxiucai
8ce513ca07
Enable parameterized kubelet mount path during node-agent installation ( #9074 )
...
Enable parameterized kubelet mount path during node-agent installation
Signed-off-by: longyuxiang <longyuxiang@kylinos.cn >
2025-07-23 14:50:16 +08:00
Lyndon-Li
61238ee0ae
issue 9077: don't block backup deletion on list VS error
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-07-23 11:32:18 +08:00
Lyndon-Li
e6377ff2fd
Merge branch 'main' into bump-up-kopia-0.21.1
2025-07-22 13:42:37 +08:00
Lyndon-Li
b5502330e5
bump up kopia to v0.21.1
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-07-22 13:40:12 +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
lyndon-li
fd8c95baf8
Issue 9053: remove selected-node annotation during PVC restore ( #9076 )
...
issue 9053: remove selected-node annotation during PVC restore
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-07-21 12:33:07 +08:00
Tiger Kaovilai
2b787f5d3d
PVR action to remove restore-wait init container on restore ( #8880 )
...
This PR fixes issue #8870 where Velero was unnecessarily adding the restore-wait init container when restoring pods with volumes that were backed up using native datamover or CSI.
When restoring pods with volumes, Velero was always adding the restore-wait init container, even when the volumes were backed up using native datamover or CSI and didn't need file system restores. This was causing unnecessary overhead and potential issues.
PVR action to remove restore-wait init container on restore
Changes:
- Remove ALL existing restore-wait init containers before deciding whether to add a new one
- This covers both scenarios: when no file system restore is needed AND when preventing duplicates
- Simplify the add logic since we've already cleaned up existing containers
- Add better logging to show how many containers were removed
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-07-21 11:03:42 +08:00
lyndon-li
06d305ea47
Issue 8344: constrain data path expose ( #9064 )
...
Run the E2E test on kind / build (push) Failing after 7m38s
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 39s
Close stale issues and PRs / stale (push) Successful in 22s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m32s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 1m41s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-gcp, main) (push) Failing after 1m30s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-microsoft-azure, main) (push) Failing after 1m18s
* issue 8344: constrain data path exposure.
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-07-18 13:32:45 +08:00
Scott Seago
29a8bc4492
Mounted cloud credentials should not be world-readable ( #8919 )
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2025-07-18 10:45:38 +08:00
lyndon-li
805237a8da
issue 8185: allow to disable node-agent host path ( #9068 )
...
Run the E2E test on kind / build (push) Failing after 7m24s
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 39s
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-07-17 11:54:42 +08:00
lyndon-li
d889ad318b
design for node agent soothing ( #9067 )
...
Run the E2E test on kind / build (push) Failing after 8m15s
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 39s
Close stale issues and PRs / stale (push) Successful in 22s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m34s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 1m27s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-gcp, main) (push) Failing after 1m34s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-microsoft-azure, main) (push) Failing after 1m30s
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-07-16 16:45:20 +08:00
Lyndon-Li
2e79ec99cf
Merge branch 'main' into issue-fix-8857
2025-07-08 14:24:34 +08:00
Lyndon-Li
a752b54614
issue 8857: support third party tolerations
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-07-08 14:23:00 +08:00
Lyndon-Li
88ec5fa193
issue 8813: remove restic from the valid uploader type
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-07-07 15:55:24 +08:00
Daniel Jiang
a550910f36
Add Gauge metric for BSL availability
...
The label of the gauge is the name of BSL
Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com >
2025-07-03 17:36:19 +08:00
Xun Jiang
b5426516da
Make the backup repository controller doesn't invalidate the BSL on restart.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-07-02 17:57:06 +08:00
Xun Jiang/Bruce Jiang
b7ffcf64cc
Merge pull request #9048 from sseago/multiple-hook-tracking
...
Run the E2E test on kind / build (push) Failing after 8m14s
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 56s
Close stale issues and PRs / stale (push) Successful in 16s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m49s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 1m32s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-gcp, main) (push) Failing after 1m35s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-microsoft-azure, main) (push) Failing after 1m31s
Allow for proper tracking of multiple hooks per container
2025-07-02 17:05:12 +08:00
Xun Jiang
f2133c7d22
The backup and restore data mover node selection.
...
Update Makefile to let the `make serve-docs` work again.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-07-01 16:26:12 +08:00
Scott Seago
ca61b65302
Allow for proper tracking of multiple hooks per container
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2025-06-27 16:40:15 -04:00
Priyansh Choudhary
bd609db395
Remove username/password credential handling from newConfigCredential ( #9041 )
...
Run the E2E test on kind / build (push) Failing after 6m56s
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 1m1s
Close stale issues and PRs / stale (push) Successful in 16s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m30s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 1m17s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-gcp, main) (push) Failing after 1m18s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-microsoft-azure, main) (push) Failing after 1m15s
* remove username/password credential handling from newConfigCredential
Signed-off-by: Priyansh Choudhary <im1706@gmail.com >
* changelog update
Signed-off-by: Priyansh Choudhary <im1706@gmail.com >
* remove username/password credential tests from newConfigCredential.
Signed-off-by: Priyansh Choudhary <im1706@gmail.com >
---------
Signed-off-by: Priyansh Choudhary <im1706@gmail.com >
2025-06-27 10:02:41 -04: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
lyndon-li
4e5020d463
Merge pull request #9030 from Lyndon-Li/vgdp-ms-resume-pvb-pvr
...
VGDP resume PVB/PVR
2025-06-25 17:20:46 +08:00
Jan Jansen
81105031a7
copy security context from origin pod
...
Signed-off-by: Jan Jansen <jan.jansen@gdata.de >
2025-06-24 16:17:08 +08:00
lyndon-li
2afb55d64e
Merge branch 'main' into vgdp-ms-resume-pvb-pvr
2025-06-24 11:34:53 +08:00
Lyndon-Li
d73cef3b94
handle velero server and node-agent restarts for vgdp ms for pvb
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-24 11:07:26 +08:00
Lyndon-Li
cded6bd207
cancel pvb/pvr on velero server restarts
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-23 15:29:09 +08:00
lyndon-li
c080a95445
Merge branch 'main' into bump-kopia-v0.20.1
2025-06-19 14:53:01 +08:00
lyndon-li
a8f99fa263
Merge branch 'main' into bump-kopia-v0.20.1
2025-06-19 14:24:03 +08:00
lyndon-li
14058f613b
Merge branch 'main' into vgdp-ms-pvbr-describe
2025-06-18 16:00:18 +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
Lyndon-Li
2e7d11e3b6
bump kopia v0.20.1
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-18 13:35:12 +08:00
lyndon-li
ea9a6beeb2
Merge branch 'main' into vgdp-ms-legacy-pvr-controller
2025-06-17 13:17:20 +08:00
Lyndon-Li
6274593840
legacy pvr controller for restic path
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-16 17:22:04 +08:00
Lyndon-Li
749d57db3e
windows support for vgdp ms for pvb
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-16 15:27:51 +08:00
Lyndon-Li
33bb51b14d
Merge branch 'main' into vgdp-ms-pvb-controller
2025-06-12 15:52:22 +08:00
Lyndon-Li
b8bb67a0d5
Merge branch 'main' into vgdp-ms-pvb-controller
2025-06-12 11:31:28 +08:00