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
Matthieu MOREL
3d6dab0708
lint(ginkgolinter): expect (not)to HaveOccurred ( #7565 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-03-29 10:05:48 -04: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
Xun Jiang
f8deea1617
Skip populate VolumeInfo for data-moved PV when CSI is not enabled.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com >
2024-03-13 15:47:43 +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
9be8eb0c6d
Don't generate empty structure.
...
VolumeInfo contains several sub-structures. They are filled for
different scenarios. Do not generate empty structure for the
not filled sub-structures.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-12-21 14:53:03 +08:00
qiuming
ea04a86eb2
Merge pull request #6771 from qiuming-best/bsl-fix
...
Fix default BSL setting not work
2023-12-05 19:09:50 +08:00
Xun Jiang/Bruce Jiang
45ae68575d
Merge pull request #7153 from allenxu404/hooktracker-update
...
Enhance hooks tracker by adding an returned error to record function
2023-12-05 13:43:38 +08:00
allenxu404
6051b3cbe0
Enhance hooks tracker by adding a returned error to record function
...
Signed-off-by: allenxu404 <qix2@vmware.com >
2023-12-05 12:56:42 +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
Ming Qiu
c6cba300fb
Fix default BSL setting not work
...
Signed-off-by: Ming Qiu <mqiu@vmware.com >
2023-12-01 02:06:35 +00: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
Anshul Ahuja
0e53cd0916
RM support for Escaped bool, float, null ( #7118 )
...
* RM support for Escaped bool, float, null
Signed-off-by: Anshul Ahuja <anshul.ahu@gmail.com >
* fix ci
Signed-off-by: Anshul Ahuja <anshul.ahu@gmail.com >
---------
Signed-off-by: Anshul Ahuja <anshul.ahu@gmail.com >
2023-11-21 09:18:34 +05:30
Wenkai Yin(尹文开)
5a10f9090a
Truncate the credential file to avoid the change of secret content messing it up
...
Truncate the credential file to avoid the change of secret content messing it up
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com >
2023-11-08 09:33:56 +08:00
Anshul Ahuja
6b7ce6655d
Merge pull request #7022 from allenxu404/i6721
...
Fix inconsistent behavior of Backup and Restore hook execution
2023-11-06 14:01:30 +05:30
lyndon
d6146ecff4
Merge pull request #7041 from blackpiglet/6190_part_2
...
Remove dependency of generated client part 2
2023-11-03 17:43:10 +08:00
Xun Jiang
a221a88945
Remove dependency of generated client part 2
...
Remove dependecy of generate client from pkg/cmd/cli/snapshotLocation.
Remove the Velero generated informer from PVB and PVR.
Remove dependency of generated client from pkg/podvolume directory.
Replace generated codec with runtime codec.
Signed-off-by: Xun Jiang <jxun@vmware.com >
2023-11-03 17:11:36 +08:00
allenxu404
3a3527553a
Fix inconsistent behavior of Backup and Restore hook execution
...
Signed-off-by: allenxu404 <qix2@vmware.com >
2023-11-02 12:31:53 +08:00
Wenkai Yin(尹文开)
73c948d6bd
Merge pull request #6917 from 27149chen/rm-improvement
...
support JSON Merge Patch and Strategic Merge Patch in Resource Modifiers
2023-11-02 10:36:40 +08:00
lou
e30937550e
update after review
...
Signed-off-by: lou <alex1988@outlook.com >
2023-11-01 21:53:30 +08:00
lou
4ead4d6976
update after review
...
Signed-off-by: lou <alex1988@outlook.com >
2023-10-24 21:44:14 +08: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
lou
d1f5219cbb
update after review
...
Signed-off-by: lou <alex1988@outlook.com >
2023-10-18 17:05:00 +08:00
qiuming
5ff5073cc3
Add volume types filter in resource policies ( #6863 )
...
Signed-off-by: Ming Qiu <mqiu@vmware.com >
2023-10-16 17:36:54 -04:00
Ripolin
e5af7f5cea
Add WaitForReady flag to check container readiness state before exec a hook
...
Signed-off-by: Ripolin <florent.david@gmail.com >
2023-10-12 20:31:36 +02:00
lou
6d89780fb2
add more tests
...
Signed-off-by: lou <alex1988@outlook.com >
2023-10-10 22:33:35 +08:00
lou
19d5bee572
Merge branch 'main' into rm-improvement
2023-10-10 19:02:16 +08:00
lou
65082f33a4
add deserialization tests
...
Signed-off-by: lou <alex1988@outlook.com >
2023-10-10 18:59:45 +08:00
lou
5932e263c9
update after review
...
Signed-off-by: lou <alex1988@outlook.com >
2023-10-10 16:00:46 +08:00
lou
58d8425952
fix lint
...
Signed-off-by: lou <alex1988@outlook.com >
2023-10-05 01:19:05 +08:00
lou
06ed9dcc71
add changelog
...
Signed-off-by: lou <alex1988@outlook.com >
2023-10-04 16:02:23 +08:00
yanggang
11745809c4
Add missing file licences and do some clean works.
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-09-29 04:25:01 +01:00
lou
d8b9328310
support JSON Merge Patch and Strategic Merge Patch in Resource Modifiers
...
Signed-off-by: lou <alex1988@outlook.com >
2023-09-25 18:00:18 +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
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
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
Anshul Ahuja
c0ca69dc87
Improve test coverage
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-07-13 13:52:49 +05:30
Anshul Ahuja
f156a2cd52
add from field and enhance coverage
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-07-13 12:01:41 +05:30
Anshul Ahuja
7396e64409
Add separate handling for test operator with test
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-07-13 10:26:28 +05:30
Anshul Ahuja
16ec2db1f7
regex matchstring error parsing
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-07-13 10:10:37 +05:30
Anshul Ahuja
4a28b3b16f
start end operator in test
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-07-13 09:44:03 +05:30
Anshul Ahuja
ce7d2bfc87
add more logs
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-07-11 11:16:44 +05:30
Anshul Ahuja
f5b6cf5b93
minor fixes
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-07-11 10:00:08 +05:30
Anshul Ahuja
700a34901a
fix test
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-07-10 15:02:45 +05:30
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
4e6d31dc38
linting
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-07-06 11:29:33 +05:30
Anshul Ahuja
4b3f6d41cb
remove comments
...
Signed-off-by: Anshul Ahuja <anshulahuja@microsoft.com >
2023-07-06 10:49:35 +05:30