Daniel Jiang
bed10c7fe6
Fix the problems found by codespell
...
Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com>
2024-05-24 13:32:54 +08: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
Guang Jiong Lou
6c2b66b480
Modify the wrong ConfigMap name in v1.13 node-agent-concurrency document. ( #7715 )
...
Fix condition matching in resource modifier when there are multiple rules
Signed-off-by: lou <alex1988@outlook.com>
Co-authored-by: Xun Jiang <blackpigletbruce@gmail.com>
2024-05-14 17:01:50 -04:00
lyndon-li
01a2d952ac
Merge pull request #7664 from shubham-pampattiwar/vol-policy-extension-impl
...
Extend Volume Policies feature to support more actions
2024-04-24 13:39:36 +08:00
Shubham Pampattiwar
8d2bef2486
Extend Volume Policies feature to support more actions
...
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
fix volume policy action execution
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
remove unused files
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
add changelog file
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
fix CI linter errors
fix linter errors
address pr review comments
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
fix via make update cmd
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
address PR feedback and add tests
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
fix codespell
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
fix ci linter checks
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
remove volsToExclude processing from volume policy logic and add tests
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
fix ci linter issue
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
2024-04-23 12:54:14 -07: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
allenxu404
28552258ae
Wait for results of restore exec hook executions in Finalizing phase instead of InProgress phase
...
Signed-off-by: allenxu404 <qix2@vmware.com>
2024-04-15 17:49:36 +08:00
Xun Jiang
30995bcbd2
Add more UT for the CSI plugins.
...
Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com>
2024-04-13 23:22:43 +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
Xun Jiang/Bruce Jiang
7935236db0
Merge pull request #7584 from mmorel-35/json-patch/v5
...
build(deps): bump json-patch to v5.8.0
2024-04-10 18:40:16 +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
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
a9085033b2
build(deps): bump json-patch to v5.8.0
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-03-29 14:08:33 +00: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