Xun Jiang/Bruce Jiang
f25c154709
Merge pull request #7569 from ywk253100/240326_namespace
...
Check the existence of the namespaces provided in the "--include-namespaces" option
2024-04-11 19:00:33 +08:00
Xun Jiang
31e140919a
Merge CSI plugin code.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-04-10 14:53:29 +08:00
Wenkai Yin(尹文开)
35d2534e19
Check the existence of the namespaces provided in the "--include-namespaces" option
...
Check the existence of the namespaces provided in the "--include-namespaces" opt
ion and reports validation error if not found
Fixes #7431
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2024-03-27 18:37:03 +08:00
Xun Jiang
efb94ae610
Refactor the native snapshot definition code.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-03-20 15:38:07 +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
zhongjun.li
8e4cefbb0d
Reduce backup DeepCopy
...
Signed-off-by: zhongjun.li <zhongjun.li@daocloud.io >
2024-01-02 11:34:40 +08:00
Shubham Pampattiwar
2bd9bf2903
Merge pull request #7076 from shubham-pampattiwar/update-backup-log
...
Update backup log to reflect appropriate backup phase
2023-12-11 12:49:06 -08:00
Xun Jiang
edb0860dd2
Fix issue #7163 .
...
Update CSIVolumeSnapshotsCompleted in backup's status and the metric
during backup finalize stage according to async operations content.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-12-07 09:43:10 +08:00
Xun Jiang
c77bec73bb
Move VolumesInformation to an independant package.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-12-04 08:33:37 +08:00
Xun Jiang
ca97248f2a
Use VolumeInfo to help restore the PV.
...
Add VolumeInfo for left PVs during backup.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-12-04 08:33:37 +08:00
Xun Jiang
f5c159ce56
Resolve linter issues.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-11-29 11:15:43 +08:00
Xun Jiang
7f52321772
Generate VolumeInfo.
...
Remove CSI VolumeSnapshot listter and the informer.
Add download the VolumeInfos metadata for backup.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-11-22 09:40:38 +08:00
Wenkai Yin(尹文开)
939dd7149a
Merge pull request #7070 from blackpiglet/6595_interface
...
Add VolumeInfo metadata structures.
2023-11-17 19:31:29 +08:00
Xun Jiang
b440a4f53f
Add VolumeInfo metadata structures and object get method.
...
Modify design according to comments.
Add PVInfo structure.
Add backup VolumeInfo's object storage's put and get methods.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-11-17 17:23:47 +08:00
Shubham Pampattiwar
ea7f249e90
Update backup log to reflect appropriate backup phase
...
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
use infof instead of sprintf
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com >
2023-11-09 04:55:24 -08:00
Tiger Kaovilai
9311a4269b
refactor backup snapshot status updates into UpdateBackupSnapshotsStatus() and run in backup_finalizer_controller
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2023-11-02 15:30:35 -04:00
Anshul Ahuja
20a1118acf
Make configmapref check case insensitive ( #6804 )
...
* Make configmapref check case insensitive
Signed-off-by: Anshul Ahuja <anshul.ahu@gmail.com >
* update resourcemodfier test case to validate case
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
---------
Signed-off-by: Anshul Ahuja <anshul.ahu@gmail.com >
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
Co-authored-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-10-26 15:30:21 +05:30
Yang Gang
e5e99c75a0
Fix dep package describe and ci words spell. ( #6924 )
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-10-09 12:12:14 +05:30
Lyndon-Li
778feba3ae
fix issue 6647
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-09-04 16:55:36 +08: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
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
Wenkai Yin(尹文开)
89c10ddcc0
Update metrics when backup failed with validation error ( #6318 )
...
Update metrics when backup failed with validation error
Fixes #6265
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2023-06-09 11:19:26 +08:00
Xun Jiang/Bruce Jiang
9743a7ce56
Fix #6118 : Do not persist VolumeSnapshot and VolumeSnapshotContent for snapshot DataMover case. ( #6366 )
...
1. Because VolumeSnapshot and VolumeSnapshotContent CRs are not kept after backup completed,
don't persist them in the backup metadata.
2. Add some builder methods needed by CSI plugin.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-06-08 17:05:17 +08:00
Xun Jiang
7491ab1ec5
Remove Wait VolumeSnapshot to ReadyToUse logic.
...
Due to the logic moving to plugin, and the plugin cannot read the
Velero server's resourceTimeout setting, add the resourceTimeout
in the backup annotation to pass to plugin.
Remove VolumeSnapshotContent reset code from Velero server.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-06-02 14:43:43 +08:00
Xun Jiang
f051ecaee9
Enable errcheck linter and resolve found issues.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-28 09:33:42 +08:00
Xun Jiang/Bruce Jiang
a8a17d725a
Merge pull request #6194 from blackpiglet/linter_more
...
Enable more linters, and remove mal-functioned milestoned issue action.
2023-04-26 14:12:47 +08:00
Xun Jiang
443f732e51
Enable more linters, and remove mal-functioned milestoned issue action.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-25 23:31:51 +08:00
Xun Jiang
180cc4e31d
Enable linter revive and resolve found errors: part 1
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-04-25 23:15:15 +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/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
Scott Seago
05c4e35ae7
Fixed backup deletion bug related to async operations
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2023-03-29 09:27:04 -04:00
Daniel Jiang
82358666c8
Merge pull request #6009 from qiuming-best/resource-policies
...
Adjust match resource policies
2023-03-24 10:48:50 +08:00
Ming
a3cef5b0d3
Adjust match resource policies
...
Signed-off-by: Ming <mqiu@vmware.com >
2023-03-23 03:48:26 +00:00
lyndon
2ad43194aa
Merge pull request #5900 from blackpiglet/5416_limit_concurrent_goroutine
...
Limit the concurrent number for backup's VolumeSnapshot operation
2023-03-21 18:07:27 +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
Lyndon-Li
115f32cae5
remove merged back deprecate code
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-03-21 09:56:52 +08:00
Daniel Jiang
458560795b
Remove Reference of itemsnapshotter ( #5997 )
...
It will be removed as we choose to use BIAv2 for progress monitoring.
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2023-03-21 09:05:29 +08:00
Xun Jiang
c677c433e0
Limit the concurrent number of go routine for VolumeSnapshot and VolumeSnapshotContent operations.
...
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
2023-03-16 11:42:38 +08:00
杨刚 (成都)
ad9c6e8dee
delete io/ioutil package. ( #5955 )
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-03-16 09:25:58 +08:00
杨刚 (成都)
1d8ca4f2ef
delete unused parms for UpdateVolumeSnapshotLocationWithCredentialConfig ( #5954 )
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com >
Co-authored-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com >
2023-03-15 13:50:54 +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
Scott Seago
dd63e8182c
Follow-on fixes for BIAv2 controller work
...
Signed-off-by: Scott Seago <sseago@redhat.com >
2023-03-13 10:29:36 -04:00
Emily McMullan
ec4a7072b3
add server setting for default timeouts
...
Signed-off-by: Emily McMullan <emcmulla@redhat.com >
2023-03-10 10:15:09 -05:00
Xun Jiang/Bruce Jiang
7d7e3fff0d
Refoctor backup controller with controller-runtime. ( #5969 )
...
Signed-off-by: Ming <mqiu@vmware.com >
Signed-off-by: Xun Jiang <blackpiglet@gmail.com >
Co-authored-by: Ming <mqiu@vmware.com >
2023-03-10 08:59:40 +08:00
Xun Jiang/Bruce Jiang
6d8f086283
Merge pull request #5956 from Lyndon-Li/issue-fix-5935
...
Fix issue 5935
2023-03-09 15:28:47 +08:00
Lyndon-Li
40aae5ebdd
fix issue 5935
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-03-09 14:24:51 +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
Zhizhen He
fb1dc110f2
Replace k8s.io/apimachinery/pkg/util/clock with k8s.io/utils/clock
...
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com >
2023-02-21 11:56:17 +08:00
Scott Seago
fa58a775e8
Merge pull request #5576 from anshulahuja98/backupresults
...
Publish backup results to enhance error info
2023-02-18 17:00:49 -05:00