Xun Jiang
64e3643006
Fix linter error reported.
...
Run the E2E test on kind / get-go-version (push) Failing after 1m17s
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
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com >
2025-11-26 14:16:42 +08:00
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
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
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
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
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
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
Alvaro Romero
e2839bbdec
Include --annotations flag in backup and restore create commands
...
This commit implements a new --annotations flag in the backup and restore create commands.
This allows users to specify key-value pairs for annotations directly at the time of backup and restore creation, in the same way as the --labels flag.
Signed-off-by: Alvaro Romero <alromero@redhat.com >
2024-10-28 09:52:31 +01:00
Matthieu MOREL
d06601e977
fix: use Contains or ErrorContains with testify
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-10-18 20:36:45 +02:00
Tiger Kaovilai
3c937d42dd
ignore .git dir when formatting
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2024-05-10 14:12:29 -04:00
Tiger Kaovilai
e1bef5b6c2
Add existingResourcePolicy restore CR validation to controller.
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2024-05-01 11:39:03 -04: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/Bruce Jiang
58effeb879
Merge pull request #7566 from kaovilai/biaOperationErrorsPluginName
...
Add confirm flag to velero plugin add
2024-04-01 12:47:53 +08:00
Matthieu MOREL
ef04ef6361
golangci-lint: use exclude-rules instead of skip-files and skip-dirs
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-03-27 20:17:34 +00:00
Tiger Kaovilai
3c243653c4
Add confirm flag to velero plugin add
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2024-03-26 05:56:11 +07:00
qiuming
365423d220
Merge pull request #7512 from qiuming-best/support-parallel-restore
...
Make parallel restore configurable
2024-03-25 10:49:40 +08:00
Ming Qiu
64a3f2aa3a
Make parallel restore configurable
...
Signed-off-by: Ming Qiu <mqiu@vmware.com >
2024-03-19 15:15:47 +08:00
Wenkai Yin(尹文开)
8752c3a820
Bump up the versions of severel Kubernetes-related libs
...
Bump up the versions of severel Kubernetes-related libs
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2024-03-05 13:09:38 +08:00
Xun Jiang
bb4a62f3a7
Modify the label used by the restore CLI to filter the PVR.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-02-26 10:41:51 +08:00
Ming Qiu
1a237d3e4c
Update API
...
Signed-off-by: Ming Qiu <mqiu@vmware.com >
2023-12-06 08:59:12 +00:00
Ming Qiu
0afaa70e9b
Merge branch 'main' of https://github.com/qiuming-best/velero into support-restore-sparse
2023-11-30 10:55:55 +00:00
Ming Qiu
b57dde1572
Allow sparse option for Kopia & Restic restore
...
Signed-off-by: Ming Qiu <mqiu@vmware.com >
2023-11-28 13:48:09 +00:00
Xun Jiang
56b5e982d9
Remove dependency of generated client part 3
...
Replace generated discovery client with client-go client.
Remove generated client from PVR action.
Remove generated client from pkg/cmd directory.
Delete velero generate client from client factory.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-11-06 11:34:39 +08:00
Wenkai Yin(尹文开)
563f1ccee1
Merge pull request #6475 from nilesh-akhade/main
...
Add `--or-selector` for backup and restore command
2023-09-27 20:09:07 +08:00
Anshul Ahuja
e753a08f85
E2E test for Resource Modifier & Bug fixes ( #6483 )
...
* Add resource modifier e2e test and bug fixes
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-08-16 11:09:59 +08:00
allenxu404
7a8a68d9e9
modify output for command of restore delete
...
Signed-off-by: allenxu404 <qix2@vmware.com >
2023-08-09 15:58:31 +08:00
Qi Xu
5f463c59ec
add "Deleting" phase for restore display ( #6604 )
...
Signed-off-by: allenxu404 <qix2@vmware.com >
2023-08-08 17:16:53 -04:00
Nilesh Akhade
d9a7e2b6ca
Add 'orLabelSelector' for backup, restore command
...
Signed-off-by: Nilesh Akhade <nakhade@catalogicsoftware.com >
2023-07-19 16:16:35 +05:30
Anshul Ahuja
c8f970a4f1
Merge branch 'main' into resourcemodifier
...
Signed-off-by: Anshul Ahuja <anshul.ahu@gmail.com >
2023-07-19 11:11:40 +05:30
Xun Jiang
4a222b76c6
Improve backup log command UT coverage.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-07-18 14:41:55 +08:00
Xun Jiang
9e515ac397
Remove dependency of the legacy client code from pkg/cmd directory part 2.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-07-17 17:04:53 +08:00
Xun Jiang
89d3ad4864
Remove dependency of the legacy client code from pkg/cmd directory.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-07-14 15:55:09 +08:00
Anshul Ahuja
4931a780f7
make optional CLI field and add test cases.
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-07-10 14:45:53 +05:30
Anshul Ahuja
3923d382fd
Fix CI
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-07-06 10:44:33 +05:30
Anshul Ahuja
9ea54c81fe
CRD and CLI changes
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-06-28 12:15:55 +05:30
danfengliu
ef443fece0
Add UT for pkg/cmd/cli/backup ( #6400 )
...
Signed-off-by: danfengl <danfengl@vmware.com >
2023-06-21 11:10:13 +08:00
Xun Jiang/Bruce Jiang
1fd28e8a36
Fix usestdlibvars and whitespace linters issues. ( #6162 )
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
Co-authored-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-24 09:10:55 +08:00
Xun Jiang/Bruce Jiang
15d44724e7
Modify golangci.yaml file. Resolve found lint issues. ( #6008 )
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
Co-authored-by: Xun Jiang <blackpiglet@gmail.com >
2023-03-24 12:15:08 +08:00
Scott Seago
2155b2b215
RIAv2 async operations controller work
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2023-03-17 14:30:39 -04:00
Lyndon-Li
28d636bd71
fix client wait problem
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-03-08 09:29:16 +08:00
Lyndon-Li
c92f06ef17
fix lint loop iterator problem
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-10-18 22:40:48 +08:00
Lyndon-Li
d7b4583b2b
fix lint errors
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-10-18 21:53:47 +08:00
Wenkai Yin(尹文开)
4a5647a891
Move the code in pkg/restic/common.go to the proper package
...
Move the code in pkg/restic/common.go to the proper package
Fixes #5243
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-08-29 10:04:58 +08:00
Scott Seago
a79c1a5877
Merge pull request #4785 from RafaeLeal/restore-status
...
Add ability to restore status on selected resources
2022-05-24 09:41:18 -04:00
Wenkai Yin(尹文开)
44199db79d
Enhance the map flag to support parsing input value contains entry delimiters
...
Enhance the map flag to support parsing input value contains entry delimiters
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2022-05-17 13:56:41 +08:00
Rafael Leal
8ecc11fad2
Add restore status to cli
...
Signed-off-by: Rafael Leal <rafaelealdias@gmail.com >
2022-05-12 12:00:34 -03:00
Shubham Pampattiwar
e3106f3e10
add existingResourcePolicy to Restore API
...
add updateall policy option
fix updating labels
dump updateAll policy option
remove updateAll policy refs
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
add changelog file
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
update docs
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
patch labels for sa if policy is update
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
fix existingResourcePolicy for serviceaccounts
modularize changes and add unit tests
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
fix conflicts and update crds.go
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
change log level from info to error
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
update crds.go
Signed-off-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com >
2022-05-09 13:36:24 -04:00
Carlisia Thompson
11bfe82342
Convert DownloadRequest resource/controller to kubebuilder ( #3004 )
...
* Migrate DownloadRequest types to kubebuilder
Signed-off-by: Carlisia <carlisia@vmware.com >
* Migrate controller to kubebuilder
Signed-off-by: Carlisia <carlisia@vmware.com >
* Migrate download request cli to kubebuilder
Signed-off-by: Carlisia <carlisia@vmware.com >
* Format w make update
Signed-off-by: Carlisia <carlisia@vmware.com >
* Remove download file
Signed-off-by: Carlisia <carlisia@vmware.com >
* Remove kubebuilder from backup/restore apis
Signed-off-by: Carlisia <carlisia@vmware.com >
* Fix test description
Signed-off-by: Carlisia <carlisia@vmware.com >
* Import cleanups
Signed-off-by: Carlisia <carlisia@vmware.com >
* Refactor for controller runtime version update
Signed-off-by: Carlisia <carlisia@vmware.com >
* Remove year from the copyright
Signed-off-by: Carlisia <carlisia@vmware.com >
* Check for expiration regardless of phase
Signed-off-by: Carlisia <carlisia@vmware.com >
* Fix typos and godoc
Signed-off-by: Carlisia <carlisia@vmware.com >
* Fix test setup and fix a test case
Signed-off-by: Carlisia <carlisia@vmware.com >
2021-03-01 13:28:46 -05:00
yusufgungor
3b2e9036d1
Preserve nodePort support with --preserve-nodeports flag ( #3095 )
...
* -> Preserve nodePort support when restoring via "--preserve-nodeports" flag
Signed-off-by: Yusuf Güngör <yusuf.gungor@hepsiburada.com >
* -> Added changelog.
Signed-off-by: Yusuf Güngör <yusuf.gungor@hepsiburada.com >
* -> Unit test added.
-> Using boolptr.IsSetToTrue for bool ptr check.
Signed-off-by: Yusuf Güngör <yusuf.gungor@hepsiburada.com >
* -> Unit test added.
-> Using boolptr.IsSetToTrue for bool ptr check.
Signed-off-by: Yusuf Güngör <yusuf.gungor@hepsiburada.com >
* -> Other restore errors log level changed from info to error.
-> Documentation updated about Velero nodePort restore logic and preservation of them.
Signed-off-by: Yusuf Güngör <yusuf.gungor@hepsiburada.com >
Co-authored-by: Yusuf Güngör <yusuf.gungor@hepsiburada.com >
2020-12-09 09:32:34 -08:00