Shubham Pampattiwar
c3ec7b71c5
Merge pull request #6715 from nilesh-akhade/metric
...
Remove schedule-related metrics on schedule delete
2023-09-25 10:24:04 -07:00
yanggang
cda722cf9d
Fix the metrics backup_last_status not report right value when the schedule down unexpectation.
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-09-19 15:25:21 +08:00
Wenkai Yin(尹文开)
b598150cd1
Support setting CA cert for BSL
...
Support setting CA cert for BSL
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
2023-09-19 11:28:05 +08:00
Wenkai Yin(尹文开)
3a291e368a
Make Kopia support Azure AD
...
This commit introduces our own Azure storage provider by wrapping Kopia's implementation rather than contributing to upstream based on the following considerations:
1. Velero needs the capability to interact with the repository concurrently while Kopia doesn't, this will increase the complexity of Kopia if we contribute to upstream
2. The configuration items provided by Velero and Kopia are conflict, e.g. Velero supports customizing storage account URI which is a full path while Kopia supports customizing storage account domain which is part of the URI. We need to consider the backward compatibility and upgrade case if we contribute to upstream which needs extra efforts
3. Contribute to upstream is a longer cycle when we need to introduce new changes. With this commit, we no longer depends on upstream for the Azure storage provider part and is easy for us to maintain
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
2023-09-19 11:28:04 +08:00
lyndon
5af664d361
bump kopia to v0.14 ( #6833 )
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-09-18 21:05:21 +08:00
Daniel Jiang
cf3cb9c4ed
Merge pull request #6712 from kaovilai/jobs-label-k8s1.27
...
On restore, delete Kubernetes 1.27 job controller uid label
2023-09-18 16:49:50 +08:00
lyndon
b3df028e83
Merge pull request #6815 from AgustinRamiroDiaz/main
...
Typo: remove double space
2023-09-18 12:06:27 +08:00
lyndon
c85638ddb6
Merge pull request #6827 from Lyndon-Li/issue-fix-6786
...
Issue 6786:always delete VSC regardless of the deletion policy
2023-09-15 14:18:38 +08:00
Lyndon-Li
53489b10ad
issue 6786:always delete VSC regardless of the deletion policy
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-09-15 12:10:20 +08:00
Wenkai Yin(尹文开)
185a95585a
Set data mover related properties for schedule ( #6824 )
...
Set data mover related properties for schedule
Fixes #6820
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
2023-09-14 18:14:06 +08:00
Agustín Díaz
ff45be6fdd
Typo: remove double space
...
Signed-off-by: Agustín Díaz <agustin.ramiro.diaz@gmail.com>
2023-09-13 10:46:28 -03:00
Clever Hu
9b1cffc007
check pod status before hook ( #5211 )
...
Signed-off-by: cleverhu <shouping.hu@daocloud.io>
Co-authored-by: cleverhu <shouping.hu@daocloud.io>
2023-09-13 14:49:46 +08:00
qiuming
402703f226
[Cherry-Pick] Optimize of removing finalizer no matter the dataupload datadownload cr is been deleted or not ( #6808 )
...
Signed-off-by: Ming Qiu <mqiu@vmware.com>
2023-09-12 11:33:33 -04:00
qiuming
8a366c6924
Merge pull request #6798 from yanggangtony/clean-some-code
...
Fix issue #6781 , and some code clean.
2023-09-12 14:56:27 +08:00
qiuming
c9fde84586
Merge pull request #6779 from yanggangtony/fix-log-ns-name
...
Keep the logs info ns/name is the same with other modules.
2023-09-12 14:55:56 +08:00
Yang Gang (成都)
ec11a5a4cc
code clean for repository ( #6768 )
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-09-12 14:43:28 +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
Guang Jiong Lou
246831de7b
use old namespace in resource modifier ( #6724 )
...
* use old namespace in resource modifier
Signed-off-by: lou <alex1988@outlook.com>
* add changelog
Signed-off-by: lou <alex1988@outlook.com>
* update docs
Signed-off-by: lou <alex1988@outlook.com>
* updated after review
Signed-off-by: lou <alex1988@outlook.com>
---------
Signed-off-by: lou <alex1988@outlook.com>
2023-09-08 15:29:46 +05:30
lyndon
2348099a73
Merge pull request #6788 from Lyndon-Li/issue-fix-6748-3
...
Fix issue 6748 [2]
2023-09-08 14:57:14 +08:00
Lyndon-Li
13d61c27a6
fix issue 6785
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-09-08 12:34:12 +08:00
Lyndon-Li
9895428765
fix issue 6748
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-09-08 09:14:30 +08:00
yanggang
76b6077683
Keep the logs info ns/name is the same with other modules.
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-09-06 18:40:10 +08:00
Xun Jiang/Bruce Jiang
f72afc8a5a
Merge pull request #6760 from blackpiglet/6752_fix
...
Fix #6752 : add namespace exclude check.
2023-09-06 15:44:20 +08:00
Xun Jiang
79b810ed25
Fix #6752 : add namespace exclude check.
...
Add PSA audit and warn labels.
Signed-off-by: Xun Jiang <jxun@vmware.com>
2023-09-06 14:44:30 +08:00
Daniel Jiang
a6d61ec5f6
Merge pull request #6770 from ywk253100/230906_restore
...
[cherry-pick]Update restore controller logic for restore deletion
2023-09-06 12:06:04 +08:00
qiuming
49bb998e59
Merge pull request #6765 from Lyndon-Li/issue-fix-6748
...
Fix issue 6748
2023-09-06 11:12:44 +08:00
Wenkai Yin(尹文开)
da6ac026d1
Update restore controller logic for restore deletion
...
1. Skip deleting the restore files from storage if the backup/BSL is not found
2. Allow deleting the restore files from storage even though the BSL is readonly
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
2023-09-06 09:19:42 +08:00
lyndon
8cb04d4f69
Merge pull request #6751 from Lyndon-Li/issue-fix-6647
...
Fix issue 6647
2023-09-06 09:03:00 +08:00
Lyndon-Li
d13a23364f
fix issue 6748
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-09-05 19:29:28 +08:00
lyndon
c9e1ade1f7
fix issue 6753 ( #6757 )
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-09-05 10:58:28 +08:00
Lyndon-Li
778feba3ae
fix issue 6647
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-09-04 16:55:36 +08:00
Yang Gang (成都)
25898305ef
delete unused shcema package and parms. ( #6716 )
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-09-04 14:50:10 +08:00
lyndon
b9b2c88c5b
Merge pull request #6738 from Lyndon-Li/issue-fix-6733
...
Fix issue 6733
2023-09-01 17:10:29 +08:00
lyndon
1615cfd7f3
fix issue 6709 ( #6741 )
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-09-01 16:52:24 +08:00
qiuming
f26ec9043a
Fix kopia snapshot policy not work ( #6739 )
...
Signed-off-by: Ming <mqiu@vmware.com>
2023-09-01 16:21:43 +08:00
Lyndon-Li
c4443d506c
fix issue 6733
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-09-01 15:49:13 +08:00
qiuming
0e5022254f
[Cherry-pick Main] Fix velero uninstall bug ( #6729 )
...
Signed-off-by: Ming <mqiu@vmware.com>
2023-08-31 16:15:24 +08:00
Guang Jiong Lou
5dd7c5cd46
add label selector in Resource Modifiers ( #6704 )
...
* add label selector in resource modifier
Signed-off-by: lou <alex1988@outlook.com>
* add ut
Signed-off-by: lou <alex1988@outlook.com>
* update after review
Signed-off-by: lou <alex1988@outlook.com>
* update after review
Signed-off-by: lou <alex1988@outlook.com>
---------
Signed-off-by: lou <alex1988@outlook.com>
2023-08-31 10:36:59 +05:30
Ming
85d5785d68
[Cherry-Pick main] make velero uninstall backward compatible
...
Signed-off-by: Ming <mqiu@vmware.com>
2023-08-29 01:07:41 +00:00
Nilesh Akhade
c7c441364c
Remove schedule-related metrics on schedule delete
...
Signed-off-by: Nilesh Akhade <nakhade@catalogicsoftware.com>
2023-08-28 20:52:32 +05:30
Tiger Kaovilai
c5aad9e488
Remove legacy label version check, to be added back when version is known
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
2023-08-28 11:08:44 -04:00
Tiger Kaovilai
7d3d818f93
Handle 1.27 k8s job label changes
...
per 0e86fa5115/CHANGELOG/CHANGELOG-1.27.md
?plain=1#L1768
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
2023-08-28 10:42:09 -04:00
Ming
7f3b7fe853
Fix delete dataupload datadownload failure when Velero uninstall
...
Signed-off-by: Ming <mqiu@vmware.com>
2023-08-24 03:30:28 +00:00
Daniel Jiang
3e613862e6
Merge pull request #6635 from 27149chen/skip-subresource
...
skip subresource in resource discovery
2023-08-22 13:39:12 +08:00
Xun Jiang/Bruce Jiang
a62f2fa1a3
Merge pull request #6653 from yanggangtony/fix-backup-controller-err-check
...
fix backup_controller when credentials to volume snapshot location sh…
2023-08-21 17:12:17 +08:00
Lyndon-Li
dac28084a3
issue fix 6662
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-08-17 11:35:18 +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
Shawn Hurley
563a16c10f
adding block mode to uploader/provider interfaces
...
Signed-off-by: Shawn Hurley <shawn@hurley.page>
2023-08-15 15:33:23 -04:00
yanggang
46ef54e80a
fix backup_controller when credentials to volume snapshot location show error.
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-08-15 19:36:07 +08:00
qiuming
411bd54920
Merge pull request #6616 from qiuming-best/add-accept-label
...
Fix data mover controller bugs
2023-08-15 12:04:31 +08:00
Scott Seago
441a32a861
Deal with PartiallyFailed orphaned backups as well as Completed ones
...
Fixes https://github.com/vmware-tanzu/velero/issues/6648
Signed-off-by: Scott Seago <sseago@redhat.com>
2023-08-14 13:40:32 -04:00
Ming Qiu
5485616abf
Fix data mover bugs #6550 #6563 #6600
...
Signed-off-by: Ming Qiu <mqiu@vmware.com>
2023-08-14 08:37:19 +00:00
lou
dc83981871
skip subresource in resource discovery
...
Signed-off-by: lou <alex1988@outlook.com>
2023-08-10 19:13:25 +08:00
lou
1784f63b93
get resource client again after restore actions in case resource's gv is changed
...
Signed-off-by: lou <alex1988@outlook.com>
2023-08-10 18:55:27 +08:00
qiuming
7311fb4df9
Merge pull request #6627 from Lyndon-Li/continue-wait-on-csi-snapshot-error
...
Continue wait on csi snapshot error
2023-08-10 12:27:34 +08:00
Lyndon-Li
b90c5bba3d
continue wait on csi snapshot error
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-08-10 11:34:26 +08:00
Daniel Jiang
206c4f214e
Merge pull request #6598 from luisdavim/fix_aws_creds
...
fix: load AWS config and assume role
2023-08-10 10:55:04 +08:00
Daniel Kucera
0ec0c963d2
Allow updated resource version ( #6499 )
...
Signed-off-by: Daniel Kucera <daniel.kucera@gmail.com>
2023-08-10 10:44:15 +08:00
Luis Davim
28c5dc9fda
fix: load AWS config and assume role
...
Signed-off-by: Luis Davim <dluis@vmware.com>
2023-08-09 13:26:30 +01: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
lyndon
81057b9983
Merge pull request #6621 from Lyndon-Li/data-mover-fail-earlier-for-snapshot-creation-error
...
Data mover fail earlier for snapshot creation error
2023-08-08 14:29:41 +08:00
Lyndon-Li
22c88ba330
data mover fail earlier for snapshot creation error
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-08-08 12:05:56 +08:00
Lyndon-Li
b51d1a0202
fix issue 6614
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-08-08 09:46:35 +08:00
qiuming
f78dd073bf
Merge pull request #6558 from kaovilai/s3profilefix
...
GetS3Credentials pass profile from config to NewSharedCredentials
2023-08-07 16:38:25 +08:00
Xun Jiang/Bruce Jiang
1777bbe5b4
Add warning log for snapshot data mover fell backup to Velero native snapshot. ( #6602 )
...
Enlarge throttle of UT case TestThrottle_ShouldOutput to avoid occasional CI
failure due to timeout caused by test environment's CPU speed
Signed-off-by: Xun Jiang <jxun@vmware.com>
2023-08-04 18:09:21 +08:00
Xun Jiang/Bruce Jiang
d027a1641d
Merge pull request #6591 from allenxu404/finalizer-enhance
...
Enhance uninstall and backup deletion for restore finalizer
2023-08-03 17:23:07 +08:00
allenxu404
846f0de178
enhance uninstall and backup deletion for restore finalizer
...
Signed-off-by: allenxu404 <qix2@vmware.com>
2023-08-03 16:43:33 +08:00
lyndon
06628cfecc
Merge pull request #6594 from Lyndon-Li/issue-fix-6571
...
Fix issue 6571
2023-08-03 15:09:47 +08:00
lyndon
bb74c352fb
Merge pull request #6578 from Lyndon-Li/issue-fix-6560
...
Fix issue 6560
2023-08-03 14:55:09 +08:00
Lyndon-Li
69bc84cf0c
fix issue 6571
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-08-03 14:46:02 +08:00
lyndon
bb96c2155c
fix issue 6575 ( #6587 )
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-08-02 10:27:05 -04:00
Xun Jiang/Bruce Jiang
7135f16e31
Merge pull request #6564 from Lyndon-Li/issue-fix-6561-02
...
Fix issue 6561
2023-08-02 10:05:45 +08:00
Lyndon-Li
7cf3559fab
fix issue 6560
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-08-01 21:37:51 +08:00
Lyndon-Li
d6134ec444
fix issue 6561
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-08-01 21:10:01 +08:00
Yang Gang
16613f5fe1
Fix the velero crd define locations. ( #6554 )
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-07-31 15:58:07 +08:00
Daniel Jiang
3e631ca466
Merge pull request #6555 from yanggangtony/clean-server
...
Delete redundance checkNodeAgent code
2023-07-31 14:42:21 +08:00
Daniel Jiang
462022ce72
Merge pull request #6541 from yanggangtony/fix-typos
...
Fix some typos for DataMovers type.
2023-07-31 14:39:31 +08:00
Tiger Kaovilai
289aae1581
GetS3Credentials pass profile from config to NewSharedCredentials
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
2023-07-28 11:26:40 -04:00
yanggang
2f20fac78b
Delete redundance checkNodeAgent code
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-07-28 16:16:26 +08:00
lyndon
a6d79fc272
Merge pull request #6481 from blackpiglet/6444_fix
...
Remove PVC's selector in backup's PVC action.
2023-07-27 15:43:27 +08:00
Xun Jiang/Bruce Jiang
f666667e5b
Merge pull request #6547 from reasonerjt/del-moved-snapshot
...
Delete moved snapshots when the backup is deleted
2023-07-27 15:10:33 +08:00
Daniel Jiang
b0a343cd48
Delete moved snapshots when the backup is deleted
...
This commit introduces a deleteItemAction which writes a temporary configmap to
record the snapshot info so that the controller can trigger repo manager
to remove the snapshot
This process is a bit chatty and we should consider to refactor the code
so it's easier to connect to the repo directly in the DIA
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2023-07-27 13:27:33 +08:00
Xun Jiang
33b21a380c
Remove PVC's selector in backup's PVC action.
...
Signed-off-by: Xun Jiang <jxun@vmware.com>
2023-07-27 10:09:00 +08:00
Xun Jiang/Bruce Jiang
6997e4a694
Merge pull request #6476 from reasonerjt/del-inprog-dbr
...
Delete the expired deletebackuprequests that are stuck in "InProgress"
2023-07-26 16:13:58 +08:00
yanggang
ceccd5a92c
Fix some typos for DataMovers type.
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-07-25 23:11:49 +08:00
allenxu404
6dbdc54dc7
check if restore crd exist before operating restore
...
Signed-off-by: allenxu404 <qix2@vmware.com>
2023-07-25 18:54:42 +08:00
lyndon
9c8275eda7
Merge pull request #6533 from Lyndon-Li/data-mover-wrong-bsl-after-sync
...
Data mover wrong bsl after sync
2023-07-25 14:20:10 +08:00
Lyndon-Li
74bf03b272
data mover wrong bsl after sync
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-07-25 12:38:09 +08:00
Daniel Jiang
4379b9a025
Merge pull request #6532 from yanggangtony/fix-wrong-log-controller
...
Fix wrong log for server controller logs.
2023-07-24 14:32:48 +08:00
Shubham Pampattiwar
eb35f127e2
Merge pull request #6524 from yanggangtony/fix-log-scheduler
2023-07-23 18:44:47 -07:00
Xun Jiang/Bruce Jiang
605eab1eb8
Merge pull request #6531 from yanggangtony/delete-io-util
...
delete io/ioutil package as it is deprecated
2023-07-24 09:42:55 +08:00
Mateus Oliveira
913b610196
fix: Typos and add more spell checking rules to CI ( #6415 )
...
* fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
---------
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
2023-07-21 17:25:24 -04:00
Efim Smykov
8396163e77
add missing CompletionTimestamp and metrics when restore moved into terminal phase ( #6397 )
...
Signed-off-by: Nutrymaco <efim7299@icloud.com>
2023-07-21 17:22:01 -04:00
yanggang
970938c89a
Fix wrong log for server controller logs.
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-07-21 16:35:26 +08:00
yanggang
bcc69f33f9
delete io/ioutil package as it is deprecated
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-07-21 15:18:31 +08:00
qiuming
32262babc4
Merge pull request #6479 from allenxu404/i2697
...
add restore finalizer to clean up external resources
2023-07-20 19:07:02 +08:00
Daniel Jiang
2548b20db9
Track the skipped PV in a backup and print the summary in backup log ( #6496 )
...
Partially address the requirements in #5834
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2023-07-20 16:13:48 +08:00
yanggang
c5af315d19
fix scheduleReconciler log info
...
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-07-20 13:46:08 +08:00
lyndon
b4181ef803
restict namespace to node-agent cache ( #6523 )
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
2023-07-19 16:23:28 -04:00