Matthieu MOREL
35c90f1672
testifylint: enable error-nil rule ( #7670 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-07-16 12:23:16 -04:00
Matthieu MOREL
aa3fde5ea5
testifylint: enable bool-compare rule ( #7623 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-07-16 09:28:23 -04:00
Raghuram Devarakonda
7d61917d00
Improve help message for the option "--resource-policies-configmap"
...
Signed-off-by: Raghuram Devarakonda <draghuram@gmail.com >
2024-05-30 14:00:45 -04:00
Xun Jiang
a91d2cb036
Modify the volume helper logic.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-05-23 09:57:21 +08: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
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
Lyndon-Li
1815c1691f
Merge branch 'main' into issue-fix-6695
2023-11-27 09:46:22 +08:00
Lyndon-Li
4e4f0aa1da
issue 6695: add backup describe for CSI snapshot data movement 02
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-11-20 12:11:21 +08:00
Ming
481cb60493
Make Kopia file parallelism configurable
...
Signed-off-by: Ming <mqiu@vmware.com >
2023-10-26 02:28:36 +00:00
Scott Seago
09be1f7995
issue #6807 : Retry failed create when using generateName
...
When creating resources with generateName, apimachinery
does not guarantee uniqueness when it appends the random
suffix to the generateName stub, so if it fails with
already exists error, we need to retry.
Signed-off-by: Scott Seago <sseago@redhat.com >
2023-10-09 17:38:37 -04:00
Yang Gang
fd67ecb688
Code clean for backup cmd client. ( #6750 )
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-09-29 12:23:12 -04: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
yanggang
c97b31363d
Fix some wrong logs and code clean.
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-09-11 13:38:32 +08: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
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
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
Wenkai Yin(尹文开)
9f2f563568
Add data mover related options in CLI
...
Add data mover related options in CLI
Fixes #6128
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2023-06-07 16:34:40 +08:00
Xun Jiang/Bruce Jiang
51c67089f5
Merge branch 'main' into linter_staticcheck
...
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com >
2023-04-25 15:49:05 +08:00
Xun Jiang
bbc1e2e151
Enable stylecheck linter and resolve found issues.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-25 14:37:02 +08:00
Xun Jiang
cb0ada1e1c
Enable staticcheck and resolve found issues.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-25 11:33:40 +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
56f93393d8
Modify new scope resource filters name.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-06 18:11:55 +08:00
qiuming
086dbd344f
Handle backup of volume by resource policies ( #5901 )
...
* Handle backup of volume by resource policies
Signed-off-by: Ming <mqiu@vmware.com >
2023-03-21 14:39:25 +08:00
Xun Jiang
a1e4f54488
Add new resource filters can separate cluster and namespace scope resources.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-03-14 07:07:22 +00:00
Lyndon-Li
28d636bd71
fix client wait problem
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-03-08 09:29:16 +08:00
Scott Seago
c3d1d83da5
BIAv2 async operations controller work
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2023-03-01 11:49:17 -05:00
allenxu404
16bf3e2d90
Add a json output to velero backup describe
...
Signed-off-by: allenxu404 <qix2@vmware.com >
2023-02-21 17:16:34 +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
lyndon
c81f0db886
rename pvbr param ( #5370 )
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2022-09-23 09:13:36 +08:00
Xun Jiang
d134783282
Clarify the help message for the default value of parameter --snapshot-volumes, when it's not set.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2022-09-16 16:03:05 +08:00
Xun Jiang
f8d9cfdb84
Make CSI snapshot creation timeout configurable for backup and schedule.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2022-08-08 17:07:26 +08:00
Ming
c17172f4ef
Fix default-backup-ttl not work
...
Signed-off-by: Ming <mqiu@vmware.com >
2022-04-14 15:11:44 +08:00
Daniel Jiang
04f59ce003
Bump up to v1 API for CSI snapshot
...
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2022-03-31 22:55:03 +08:00
Dominic Brekau
5fa7d08fa1
Use OrderedResources in schedules ( #4550 )
...
* Use OrderedResources in schedules
Make ParseOrderedResources public for use in schedules
Add changelog
Signed-off-by: Dominic <dominic@xdnx.org >
* Rename function in comment section
Signed-off-by: Dominic <dominic@xdnx.org >
2022-01-29 15:47:55 +08:00
Xun Jiang/Bruce Jiang
fc29294552
fix: modify generated from schedule's backup name timestamp to UTC ti… ( #4353 )
...
* fix: modify generated from schedule's backup name timestamp to UTC timezone
fix #4279
When backup is created from schedule, and the backup name is not specified, a containing-timestamp generated name will be used. Due to velero client not set timezone to UTC, a local timezone will be used for the generated name.
Signed-off-by: Xun Jiang <jxun@vmware.com >
* fix: modify generated from schedule's backup name timestamp to UTC timezone
fix #4279
When backup is created from schedule, and the backup name is not specified, a containing-timestamp generated name will be used. Due to velero client not set timezone to UTC, a local timezone will be used for the generated name.
Signed-off-by: Xun Jiang <jxun@vmware.com >
* fix: modify generated from schedule's backup name timestamp to UTC timezone
fix #4279
When backup is created from schedule, and the backup name is not specified, a containing-timestamp generated name will be used. Due to velero client not set timezone to UTC, a local timezone will be used for the generated name.
Signed-off-by: Xun Jiang <jxun@vmware.com >
* modify changelog description
Reword the changelog description according to comments.
Signed-off-by: Xun Jiang <jxun@vmware.com >
Co-authored-by: jxun <jxun@jxun-a01.vmware.com >
Co-authored-by: Xun Jiang <jxun@vmware.com >
2021-11-17 09:26:49 -05:00
codegold79
fbd6bcf504
Validate namespace in velero backup create command ( #4057 )
...
* Add namespace validation in the client
Signed-off-by: F. Gold <fgold@vmware.com >
* Add namespace validation in the backup controller
Signed-off-by: F. Gold <fgold@vmware.com >
* Add changelog for PR 4057
Signed-off-by: F. Gold <fgold@vmware.com >
* Update Copyright notice
Signed-off-by: F. Gold <fgold@vmware.com >
* Update include_excludes_test.go to follow Go standards and be easier to read
Signed-off-by: F. Gold <fgold@vmware.com >
* Add unit tests for namespace validation functions
Signed-off-by: F. Gold <fgold@vmware.com >
* Make changes per review comments
- use one set of namespace validation logic instead of writing two
- remove duplicate namespace validation functions and tests
- add namespace validation tests in includes_excludes_test.go
Signed-off-by: F. Gold <fgold@vmware.com >
* Return all ns validation err msgs as error list
Signed-off-by: F. Gold <fgold@vmware.com >
* Make error message more clear
Signed-off-by: F. Gold <fgold@vmware.com >
2021-09-03 11:03:35 -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
Ron Green
861cc78bcd
refactor(external-snapshotter): bump to v4
...
Signed-off-by: Ron Green <11993626+georgettica@users.noreply.github.com >
2021-01-26 13:06:27 +02:00
JenTing Hsiao
4ae55bb20a
Capitalize all help messages ( #3209 )
...
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com >
2021-01-05 16:36:15 -08:00
JenTing Hsiao
7f2de65b5b
feat: add delete sub-command for backup-location ( #3073 )
...
* feat: add delete sub-command for backup-location
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com >
* Change to use kubebuilder/runtimecontroller API
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com >
* fix get BSL by label doesn't work
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com >
* Update changelog
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com >
* Ordering by alphabet
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com >
* Better example format for help message
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com >
* Capital the comments
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com >
2020-11-30 13:59:42 -05:00
Misha Ketslah
8c8385aabb
pass annotations from scheduler to created backup ( #3067 )
...
* pass annotations from scheduler to created backup
Signed-off-by: Michael <michael.ketslah@tufin.com >
* add change log
Signed-off-by: Michael <michael.ketslah@tufin.com >
* add test for annotations in controller
Signed-off-by: Michael <michael.ketslah@tufin.com >
* If no annotations are set - do not copy empty list
Signed-off-by: Michael <michael.ketslah@tufin.com >
* remove unneeded var
Signed-off-by: Michael <michael.ketslah@tufin.com >
* add empty annotations and actually check annotations in backups
Signed-off-by: Michael <michael.ketslah@tufin.com >
* add empty missing label and empty annotations
Signed-off-by: Michael <michael.ketslah@tufin.com >
* revert empty annotations as seems they are nil as expected
Signed-off-by: Michael <michael.ketslah@tufin.com >
* fix typo in changelog
Signed-off-by: Michael <michael.ketslah@tufin.com >
Co-authored-by: Michael <michael.ketslah@tufin.com >
2020-11-19 13:19:42 -08:00
Mateusz Gozdek
dbc83af77b
Fix various typos found by codespell ( #3057 )
...
By running the following command:
codespell -S .git,*.png,*.jpg,*.woff,*.ttf,*.gif,*.ico -L \
iam,aks,ist,bridget,ue
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com >
2020-11-10 11:48:35 -05:00
Phuong N. Hoang
14170b52a8
Enhance Backup to backup resources in specific order. ( #2724 )
...
Signed-off-by: Phuong Hoang <phuong.n.hoang@dell.com >
Co-authored-by: Phuong Hoang <phuong.n.hoang@dell.com >
2020-08-12 17:17:31 -07:00
Jason Scarano
827d5d34f5
Improve and clarify cmd help documentation, flags, and examples ( #2736 )
...
* capitalize `backup create` cmd comments & examples
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
* update copyright and capitilize flags and comments
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
* update copyright and capitilize flags and comments
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
* update copyright and capitilize flags and comments
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
* update backuplocation, restic, & restore cmd doc
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
* fix local typo
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
* update copyrights & capitalize pflag/help strings
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
* update copyright in utils dir
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
* Revert "update copyright in utils dir"
This reverts commit d116efe3a3 .
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
* revert copyright changes
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
* restore missing file
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
* revert copyright changes
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
* add cacert flag back
Signed-off-by: Jason Scarano <scaranoj@vmware.com >
Co-authored-by: Carlisia Campos <carlisia@vmware.com >
2020-08-12 18:13:44 -04:00