Xun Jiang
c34865a5fc
Bump k8s library to v1.33.
...
Run the E2E test on kind / build (push) Failing after 8s
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
Replace deprecated EventExpansion method with WithContext methods.
Modify UTs.
Align the E2E ginkgo CLI version with go.mod
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-09-08 20:37:51 +08:00
Xun Jiang
c62a486765
Add ConfigMap parameters validation for install CLI and server start.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-08-22 20:31:38 +08:00
Xun Jiang and Xun Jiang/Bruce Jiang
ec99b50970
Remove the repository maintenance job parameters from velero server.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-08-07 23:25:22 +08:00
lyndon-li and GitHub
ae29030917
Merge branch 'main' into implement8869
2025-08-06 13:45:35 +08:00
Tiger Kaovilai and Claude
35d2cc0890
Add priority class support for Velero server and node-agent
...
- Add --server-priority-class-name and --node-agent-priority-class-name flags to velero install command
- Configure data mover pods (PVB/PVR/DataUpload/DataDownload) to use priority class from node-agent-configmap
- Configure maintenance jobs to use priority class from repo-maintenance-job-configmap (global config only)
- Add priority class validation with ValidatePriorityClass and GetDataMoverPriorityClassName utilities
- Update e2e tests to include PriorityClass testing utilities
- Move priority class design document to Implemented folder
- Add comprehensive unit tests for all priority class implementations
- Update documentation for priority class configuration
- Add changelog entry for #8883
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
remove unused test utils
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
feat: add unit test for getting priority class name in maintenance jobs
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
doc update
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
feat: add priority class validation for repository maintenance jobs
- Add ValidatePriorityClassWithClient function to validate priority class existence
- Integrate validation in maintenance.go when creating maintenance jobs
- Update tests to cover the new validation functionality
- Return boolean from ValidatePriorityClass to allow fallback behavior
This ensures maintenance jobs don't fail due to non-existent priority classes,
following the same pattern used for data mover pods.
Addresses feedback from:
https://github.com/vmware-tanzu/velero/pull/8883#discussion_r2238681442
Refs #8869
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
refactor: clean up priority class handling for data mover pods
- Fix comment in node_agent.go to clarify PriorityClassName is only for data mover pods
- Simplify server.go to use dataPathConfigs.PriorityClassName directly
- Remove redundant priority class logging from controllers as it's already logged during server startup
- Keep logging centralized in the node-agent server initialization
This reduces code duplication and clarifies the scope of priority class configuration.
🤖 Generated with [Claude Code](https://claude.ai/code )
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
refactor: remove GetDataMoverPriorityClassName from kube utilities
Remove GetDataMoverPriorityClassName function and its tests as priority
class is now read directly from dataPathConfigs instead of parsing from
ConfigMap. This simplifies the codebase by eliminating the need for
indirect ConfigMap parsing.
Refs #8869
🤖 Generated with [Claude Code](https://claude.ai/code )
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
refactor: remove priority class validation from install command
Remove priority class validation during install as it's redundant
since validation already occurs during server startup. Users cannot
see console logs during install, making the validation warnings
ineffective at this stage.
The validation remains in place during server and node-agent startup
where it's more appropriate and visible to users.
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-06 01:36:22 -04: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
Xun Jiang/Bruce Jiang and GitHub
9cb421c26f
Fix the dd and du's node affinity issue. ( #9130 )
...
Run the E2E test on kind / build (push) Failing after 12m11s
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 27s
Close stale issues and PRs / stale (push) Successful in 12s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m22s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 1m3s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-gcp, main) (push) Failing after 1m0s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-microsoft-azure, main) (push) Failing after 1m6s
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-08-04 16:21:35 -04:00
Shubham Pampattiwar
d8f222c83f
Add ConfigMap support for keepLatestMaintenanceJobs
...
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
add changelog file
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
lint fix
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2025-07-31 16:33:46 -07:00
Tiger Kaovilai and GitHub
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
lyndon-li and GitHub
9b721a8251
Merge branch 'main' into issue-fix-9077
2025-07-23 15:05:22 +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
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
lyndon-li and GitHub
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
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 and Xun Jiang/Bruce 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 and Xun Jiang/Bruce 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 and GitHub
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
Xun Jiang/Bruce Jiang and GitHub
5ebb055c57
Add UT for maintenance's DeleteOldJobs function. ( #9013 )
...
Unify the k8s.io/api/batch/v1 import alias to bactchv1api.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-06-26 20:49:26 -04:00
Lyndon-Li
0450290095
resume PVB/PVR on node-agent restart
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-25 14:24:18 +08:00
lyndon-li and GitHub
2afb55d64e
Merge branch 'main' into vgdp-ms-resume-pvb-pvr
2025-06-24 11:34:53 +08:00
lyndon-li and GitHub
c7e87e02ee
Merge branch 'main' into vgdp-ms-resume-pvb-pvr
2025-06-24 11:09:16 +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 and GitHub
18f817295c
Merge branch 'main' into vgdp-ms-cancel-pvb-pvr
2025-06-24 10:52:54 +08: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
cded6bd207
cancel pvb/pvr on velero server restarts
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-23 15:29:09 +08:00
Matthieu MOREL
3024e6223e
fix equal-values rule from testifylint
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-06-22 22:41:08 +02:00
Matthieu MOREL
59825a0506
fix len rule from testifylint
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-06-22 22:41:08 +02:00
Lyndon-Li
12f56111c1
handle velero server and node-agent restarts for vgdp ms for pvb
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-18 20:04:36 +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
dddf764620
pvr controller for legacy restic restore
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-16 15:51:35 +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
Lyndon-Li
c3a8c89ae3
vgdp ms pvb controller
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-12 11:30:51 +08:00
Lyndon-Li
4880da4c74
Merge branch 'main' into vgdp-ms-pvr-controller
2025-06-12 11:21:00 +08:00
Lyndon-Li
99c699fcb1
vgdp ms pvb controller
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-11 09:22:43 +00:00
Shubham Pampattiwar
97a4d62d3c
Extend PVCAction itemblock plugin to support grouping PVCs under VolumeGroupSnapshot label
...
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
Add changelog file
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
Update VGS label key and address PR feedback
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
update log level to debug for edge cases
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
Change VGS label key constant location
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
run make update
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2025-06-10 07:01:45 -07:00
Lyndon-Li
fec271180d
vgdp ms pvr controller
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-10 19:25:02 +08:00
Lyndon-Li
390da9cfb2
Merge branch 'main' into vgdp-ms-pvr-controller
2025-06-10 17:59:30 +08:00
Lyndon-Li
1f5436fe91
vgdp ms pvr controller
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-06-10 16:54:21 +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
Lyndon-Li
5d5d4cd657
Merge branch 'main' into pod-volume-exposer
2025-06-06 14:40:26 +08:00
Xun Jiang/Bruce Jiang and GitHub
2390bc8e71
Merge pull request #8976 from blackpiglet/7785_fix
...
Add BSL status check for backup/restore operations.
2025-06-06 11:22:10 +08:00
lyndon-li and GitHub
bd23062c24
Merge branch 'main' into pod-volume-exposer
2025-06-03 14:05:11 +08:00
Shubham Pampattiwar and GitHub
d2c6b6bc3e
Add support for configuring VGS label key ( #8938 )
...
Run the E2E test on kind / build (push) Failing after 6m38s
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 31s
Close stale issues and PRs / stale (push) Successful in 10s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m17s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 1m40s
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 45s
add changelog file
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2025-05-30 11:03:47 -04:00
Wenkai Yin(尹文开) and GitHub
681a874298
Merge pull request #8975 from ywk253100/250526_repo
...
Run the E2E test on kind / build (push) Failing after 6m35s
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 31s
Mark BackupRepository not ready when BSL changed
2025-05-30 14:53:35 +08:00