Xun Jiang
59eeec268b
Update CSI document. Remove the CSI plugin verifier.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-04-12 13:51:20 +08:00
Daniel Jiang
0a280e5786
Track and persist restore volume info
...
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2024-04-11 17:32:18 +08:00
Xun Jiang/Bruce Jiang
8df4e6aded
Merge branch 'main' into merge_csi
...
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com >
2024-04-10 18:54:16 +08:00
clonefetch
474dc824e7
chore: fix function names in comment ( #7633 )
...
Signed-off-by: clonefetch <c0217@outlook.com >
2024-04-10 15:15:29 +05:30
Xun Jiang
31e140919a
Merge CSI plugin code.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-04-10 14:53:29 +08:00
Xun Jiang/Bruce Jiang
75962653c5
Merge pull request #7554 from blackpiglet/7357_fix
...
Support update the backup VolumeInfos by the Async ops result.
2024-04-01 11:05:33 +08:00
qiuming
beb221b15c
Merge pull request #7587 from blackpiglet/move_actions
...
Add actions directory for backup and restore.
2024-03-29 15:10:38 +08:00
Xun Jiang
5462035469
Delete the unneeded pvRestorer action in
...
handleSkippedPVHasRetainPolicy
According to comment, calling executePVAction aims to reset PV's
claimRef, but the reset logic was moved into resetVolumeBindingInfo
since release-1.4.
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-03-29 14:12:12 +08:00
Xun Jiang
08c93b4145
Add actions directory for backup and restore.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-03-29 13:21:50 +08:00
Wenkai Yin(尹文开)
8d10b68eda
Improve the concurrency for PVBs in different pods
...
Improve the concurrency for PVBs in different pods
Fixes #6676
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2024-03-29 09:58:50 +08:00
Xun Jiang
b06d7a467f
Support update the backup VolumeInfos by the Async ops result.
...
1. Add PutBackupVolumeInfos method.
2. Add CompletionTimestamp in VolumeInfo.
3. Add Size in SnapshotDataMovementInfo.
4. Update CompletionTimpstmap, SnapshotHandle, RetainedSnapshot
and Size in VolumeInfo on DataUpload Operation completes.
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-03-28 19:52:44 +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
Matthieu MOREL
3c704ba1b1
linter(testifylint): use Len or Empty for arrays testing ( #7555 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-03-27 14:16:58 -04: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(尹文开)
79e9e31d8d
Merge pull request #7489 from ywk253100/240229_lib
...
Bump up the versions of several Kubernetes-related libs
2024-03-12 16:12:56 +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
Shahaf Bahar
36d58943cd
Skip pvb creation when pvc excluded
...
Signed-off-by: Shahaf Bahar <sbahar@redhat.com >
2024-02-27 16:30:29 +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
Daniel Jiang
f2ba625229
Merge pull request #7138 from blackpiglet/6595_volumeinfo_restore
...
Use VolumeInfo to help restore the PV.
2023-12-05 10:19:16 +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
Daniel Jiang
266ea5d55a
Make sure the PVs skipped by CSI plugin due to settings in backup spec
...
are tracked
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2023-12-01 14:19:54 +08:00
Xun Jiang/Bruce Jiang
f5bbe82e78
Merge pull request #7152 from reasonerjt/track-skipped-SnapshotVolumes-false
...
Track the skipped PV when SnapshotVolumes set as false
2023-11-29 14:46:23 +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
cddc11e000
Enable linter errchkjson.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-11-29 11:13:46 +08:00
Daniel Jiang
b759877f5b
Track the skipped PV when SnapshotVolumes set as false
...
This commit makes sure if a PV is not taken snapshot b/c the flag
SnapshotVolumes is set to false in a backup CR, the PV is also also
tracked as skipped in the tracker.
Signed-off-by: Daniel Jiang <jiangd@vmware.com >
2023-11-28 22:52:17 +08:00
allenxu404
5d1a632be4
Add hook status to backup/restore CR
...
Signed-off-by: allenxu404 <qix2@vmware.com >
2023-11-28 14:47:31 +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
Tiger Kaovilai
cd0ad74d31
make update
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2023-11-02 16:46:15 -04:00
Tiger Kaovilai
1c138b8f55
CSIFeatureFlag enable check
...
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2023-11-02 16:20:46 -04:00
Tiger Kaovilai
f9e716a8c9
skip this if SnapshotMoveData
...
https://github.com/vmware-tanzu/velero/pull/7046/files#r1380708644
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com >
2023-11-02 16:14:55 -04: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
Xun Jiang
908e2c63ba
Check whether the action is a CSI action and whether CSI feature is
...
enabled, before executing the action.
The DeleteItemAction is not checked, because the DIA doesn't have a
method to get the action's plugin name.
This should be OK, because the CSI will check whether the VS and VSC
have a backup name annotation. If the VS and VSC is not handled by
the CSI plugin, then they don't have the annotation.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-10-24 16:54:38 +08:00
Lyndon-Li
2e71cffe0e
issue: move plugin depdending podvolume functions to util pkg
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-09-26 16:39:33 +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
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
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
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
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
kayrus
e71ee0cc5f
Add support for OpenStack CSI drivers topology keys
...
Signed-off-by: kayrus <kayrus@users.noreply.github.com >
2023-07-05 17:27:24 +02:00
Peter Pan
a97d01f7e6
Fix the snapshot log wording to be more accurate ( #6395 )
...
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io >
2023-06-30 08:14:10 +08:00
Lyndon-Li
b1316dae23
data mover smoking test 02
...
Signed-off-by: Lyndon-Li <lyonghui@vmware.com >
2023-06-26 04:47:40 +00:00
Xun Jiang
a5c28ad423
Add warning message for volume snapshotter in data mover case.
...
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-06-12 17:57:01 +08:00
Xun Jiang
8766a4dbd4
Make namespace resource doesn't honor label selector filters anymore.
...
For some use cases, namespaced-scope resources are inluded into backup,
but the namespaces are not included due to filters setting.
To do this, removing label selector filter from namespace resource.
Namespace resource only honor namespace exclude/include filters.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-06-01 16:59:18 +08:00
Shubham Pampattiwar
7fa91060bd
Merge pull request #6276 from kkothule/backupstatusprogressupdate
...
Fix status.progress not getting updated for backup
2023-05-22 11:38:33 -04:00
Wenkai Yin(尹文开)
28b9e15912
Improve the UT coverage for pkg/label
...
Improve the UT coverage for pkg/label
Fixes #6259
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2023-05-19 10:33:38 +08:00
kkothule
6a569ca5b5
Fix status.progress not getting updated for backup
...
Signed-off-by: kkothule <kkothule@catalogicsoftware.com >
2023-05-18 15:31:07 +05:30
Daniel Jiang
b8910749d2
Merge pull request #6111 from eemcmullan/pvc-dataref
...
Remove dataSource from PVC on backup for prior CSI restore case
2023-05-18 14:31: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