Shubham Pampattiwar and GitHub
ae06d40c69
Validate user-provided labels and annotations in maintenance job ( #9982 )
...
Run the E2E test on kind / get-go-version (push) Failing after 58s
Run the E2E test on kind / build (push) Has been skipped
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 / get-go-version (push) Successful in 13s
Main CI / Build (push) Failing after 26s
* Validate user-provided labels and annotations in maintenance job
User-provided labels and annotations from maintenance JobConfigs
are now validated before being applied to the maintenance Job pod
template. Invalid label keys, label values, and annotation keys
are skipped with a warning log. This prevents the Kubernetes API
from rejecting the entire Job when a user provides labels or
annotations that violate naming rules.
Additionally, user-provided labels can no longer overwrite the
internal RepositoryNameLabel used for job tracking.
Fixes velero-io/velero#9981
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
* Add tests for label and annotation validation in maintenance job
Add test cases to TestBuildJob covering:
- Invalid label key is skipped
- Invalid label value is skipped
- Label value exceeding 63 characters is skipped
- User-provided label cannot overwrite RepositoryNameLabel
- Invalid annotation key is skipped
Also fix a latent test issue where param.BackupRepo was not reset
between test cases, and add the missing assertion for
expectedPodAnnotation which was defined but never checked.
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
* Fix gofmt formatting in maintenance test file
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
* Add changelog for PR #9982
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
---------
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2026-07-10 13:00:43 -04:00
Lyndon-Li
8d23c7e813
block uploader backup implementation
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-06-30 17:03:39 +08:00
Lyndon-Li
df21463629
block uploader backup implementation
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-06-30 16:21:59 +08:00
Xun Jiang/Bruce Jiang and GitHub
02cb85ce90
Merge pull request #9890 from blackpiglet/jxun/main/bump_deps
...
[main] Bump some dependancies to fix CVEs and replace some inactive maintained packages.
2026-06-11 10:08:22 +08:00
lyndon-li and GitHub
4c1950980a
Merge pull request #9887 from Lyndon-Li/incremental-object-aware-write-at
...
Incremental aware object writer - writeat
2026-06-10 18:01:42 +08:00
Xun Jiang
49b670a791
Replace github.com/pkg/errors by github.com/cockroachdb/errors
...
Change errors.Cause to errors.Is, because github.com/cockroachdb/errors
New() function create a error with error stack with depth 1, but
github.com/pkg/errors's New() function create error with no depth.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2026-06-10 15:55:57 +08:00
Lyndon-Li
09f842afaf
refactor object writer interface
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-06-10 10:00:30 +08:00
Lyndon-Li
f474e313fa
incremental object aware write at
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-06-05 17:02:41 +08:00
Lyndon-Li
8b5db5954e
Merge branch 'main' into incremental-object-aware-write-at
2026-06-05 13:31:56 +08:00
Lyndon-Li
09bfc69d63
add totalSize to repo snapshot
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-06-03 13:23:08 +08:00
Lyndon-Li
d435b0509e
add velero-pins to repo snapshot
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-06-02 17:40:20 +08:00
Lyndon-Li
30960d1edd
incremental aware object writer - writeat
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-06-02 13:10:32 +08:00
Lyndon-Li
44eaea8faf
incremental aware object writer - write
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-05-28 14:30:11 +08:00
Lyndon-Li
596e774582
add incremental aware object writer
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-05-22 16:36:41 +08:00
Lyndon-Li
219975bee0
Merge branch 'main' into incremental-aware-object-writer
2026-05-22 15:43:45 +08:00
Lyndon-Li
d58139536b
Merge branch 'main' into kopia-repo-snapshot-operations
2026-05-22 14:57:39 +08:00
Lyndon-Li
205ca71588
kopia repo snapshot operations
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-05-22 06:26:40 +00:00
Lyndon-Li
343ed95a5e
metadata operation for Kopia repo
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-05-21 14:22:36 +08:00
Lyndon-Li
3103318c9b
Merge branch 'main' into metadata-operator-for-kopia-repo
2026-05-21 13:52:41 +08:00
Lyndon-Li
32969856af
Merge branch 'main' into kopia-repo-snapshot-operations
2026-05-21 13:27:40 +08:00
Lyndon-Li
6257282117
add listsnapshot method
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-05-12 09:51:47 +08:00
Xun Jiang
5afe5df122
Bump Velero dependencies to latest version.
...
* Fix UT failures caused by client-go version bump.
* Some modifications to enhance the UT stability.
* Fix UT errors: non-constant format string in call to ...
* Fix linter issues.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2026-05-08 17:38:42 +08:00
Lyndon-Li
6a67f4a8a4
fix UT error
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-05-08 16:41:39 +08:00
Lyndon-Li
6ca73a00b6
fix UT error
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-05-08 16:39:24 +08:00
Lyndon-Li
4f34ae17a3
add incremental aware object writer
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-04-28 18:11:53 +08:00
Lyndon-Li
44ab9a6a1a
add metadata operations for kopia repo
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-04-28 15:58:28 +08:00
Lyndon-Li
4befbc0afe
add repo snapshot operations
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-04-28 15:47:27 +08:00
Lyndon-Li
455f3ba305
unified repo interface extension for block data mover
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-04-16 18:02:30 +08:00
Lyndon-Li
dca3d3001f
remove restic for repo
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-04-08 11:11:15 +08:00
Lyndon-Li
235e579581
remove restic for repo
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-04-07 07:35:25 +00:00
Lyndon-Li
ef7b468fb9
issue 9626: let go for uninitialized repo under readonly mode
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-04-01 13:09:29 +08:00
Xun Jiang
ffea850522
Add ephemeral storage limit and request support for data mover and maintenance job.
...
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2026-03-05 14:22:53 +08:00
Lyndon-Li
e3b501d0d9
issue 9343: include PV topology to data mover pod affinities
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2026-01-23 15:45:43 +08:00
Lyndon-Li
1425ebb369
collect kopia content log
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-12-31 15:42:14 +08:00
Lyndon-Li
c556603ce2
bump kopia to 0.22.3
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-12-30 16:44:52 +08:00
lyndon-li and GitHub
2d93ab261e
Merge pull request #9141 from kaovilai/9097
...
Run the E2E test on kind / get-go-version (push) Failing after 1m8s
Run the E2E test on kind / build (push) Has been skipped
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 / get-go-version (push) Successful in 16s
Main CI / Build (push) Failing after 45s
feat: Enhance BackupStorageLocation with Secret-based CA certificate support
2025-12-19 13:13:47 +08:00
Xun Jiang
e39374f335
Add maintenance job and data mover pod's labels and annotations setting.
...
Add wait in file_system_test's async test cases.
Add related documents.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-12-17 13:21:07 +08:00
Tiger Kaovilai
f30b9f9504
add comment for restic exec function
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-12-13 00:09:09 +07:00
Tiger Kaovilai
61bf2ef777
feat: Enhance BackupStorageLocation with Secret-based CA certificate support
...
- Introduced `CACertRef` field in `ObjectStorageLocation` to reference a Secret containing the CA certificate, replacing the deprecated `CACert` field.
- Implemented validation logic to ensure mutual exclusivity between `CACert` and `CACertRef`.
- Updated BSL controller and repository provider to handle the new certificate resolution logic.
- Enhanced CLI to support automatic certificate discovery from BSL configurations.
- Added unit and integration tests to validate new functionality and ensure backward compatibility.
- Documented migration strategy for users transitioning from inline certificates to Secret-based management.
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2025-12-12 21:07:37 +07:00
Shubham Pampattiwar and GitHub
fa374b6143
Merge pull request #9407 from Lyndon-Li/fix-write-repo-init-param-error
...
Run the E2E test on kind / get-go-version (push) Failing after 1m14s
Run the E2E test on kind / build (push) Has been skipped
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 / get-go-version (push) Successful in 36s
Main CI / Build (push) Failing after 18s
Close stale issues and PRs / stale (push) Successful in 11s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m36s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 1m0s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-gcp, main) (push) Failing after 1m11s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-microsoft-azure, main) (push) Failing after 1m2s
Issue 9400: connect repo first time after creation
2025-11-12 10:28:10 -08:00
Lyndon-Li
67cf896eaf
fix backup repo init error
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-11-12 11:02:34 +08:00
Xun Jiang/Bruce Jiang and GitHub
82367e7ff6
Fix the Job build error when BackupReposiotry name longer than 63. ( #9350 )
...
* Fix the Job build error when BackupReposiotry name longer than 63.
Fix the Job build error.
Consider the name length limitation change in job list code.
Use hash to replace the GetValidName function.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
* Use ref_name to replace ref.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
---------
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-11-11 12:56:27 -05:00
Lyndon-Li
9556a39a89
repo provider interface refactor for repo static configuration
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-11-03 16:16:05 +08:00
Lyndon-Li
a4e3dccdce
Merge branch 'main' into cache-dir-for-udmprepo
2025-10-21 16:42:28 +08:00
Wenkai Yin(尹文开) and GitHub
53e99556ad
Merge pull request #9291 from Lyndon-Li/dont-connect-repo-in-repo-controller
...
Run the E2E test on kind / get-go-version (push) Failing after 55s
Run the E2E test on kind / build (push) Has been skipped
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 / get-go-version (push) Failing after 9s
Main CI / Build (push) Has been skipped
Close stale issues and PRs / stale (push) Successful in 9s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m16s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 1m7s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-gcp, main) (push) Failing after 52s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-microsoft-azure, main) (push) Failing after 47s
Don't connect repo in repo controller
2025-10-21 16:10:20 +08:00
Lyndon-Li
79b8cc40b1
Merge branch 'main' into cache-dir-for-udmprepo
2025-10-21 13:37:11 +08:00
Lyndon-Li
3e39cb4b0f
udmrepo support cache dir
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-10-21 13:36:35 +08:00
Lyndon-Li
78ddeef96c
add cache dir to VGDP
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-09-25 18:19:23 +08:00
lyndon-li and GitHub
c90856de65
Merge branch 'main' into dont-connect-repo-in-repo-controller
2025-09-23 16:12:09 +08:00
Lyndon-Li
a0aac09f0a
don't connect repo in repo controller
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2025-09-23 16:11:24 +08:00