zach593
ffefe654ae
fixed some UTs did not pass apiversion and kind when generating unstructured.Unstructured
...
Signed-off-by: zach593 <zach_li@outlook.com>
2025-02-19 20:39:55 +08:00
zach593
33a9490f1d
remove mockResourceDetector
...
Signed-off-by: zach593 <zach_li@outlook.com>
2025-02-10 22:52:17 +08:00
Monokaix
cf46939019
fix pp suspension mistakenly override scheduling suspension
...
Signed-off-by: Monokaix <changxuzheng@huawei.com>
2025-01-18 16:57:30 +08:00
Monokaix
eb2a4bd051
decouple suspension of propagation and resourcebinding
...
Signed-off-by: Monokaix <changxuzheng@huawei.com>
2024-12-28 11:31:53 +08:00
Anuj Agrawal
012517d81e
Added first part of unit tests for pkg/detector
...
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
Added first part of unit tests for pkg/detector
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-23 12:24:26 +05:30
Amir Alavi
866959a072
implement preserveResourcesOnDeletion to support migration rollback
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-10-14 20:36:53 -04:00
zhzhuang-zju
08026dc483
skip cleanup when the poliy claim metadata changed
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-10-10 10:39:59 +08:00
zhzhuang-zju
69a07ed3a0
Clean up the residual annotations when resources are preempted by pp from cpp
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-10-09 10:37:09 +08:00
karmada-bot
19d1146c35
Merge pull request #5413 from NishantBansal2003/unit-test-detector
...
Improved test coverage for preemption in pkg/detector
2024-08-27 09:35:44 +08:00
Nishant Bansal
134b29cd60
Improved test coverage for preemption in pkg/detector
...
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2024-08-26 16:11:00 +05:30
Nishant Bansal
860f3032aa
Improved test coverage for policy in pkg/detector
...
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2024-08-24 19:51:59 +05:30
Nishant Bansal
87da9a9bc1
Improved test coverage for policy in pkg/detector
...
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2024-08-20 23:42:40 +05:30
Nishant Bansal
ad9c16d5a8
Improved test coverage for handler in pkg/detector
...
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2024-08-16 23:18:08 +05:30
xovoxy
38ee277de7
optimize: used unified context in controller
...
Signed-off-by: xovoxy <xilovele@gmail.com>
2024-08-06 11:44:20 +08:00
Amir Alavi
58dbd6b56e
feat: cluster-level resource propagation pause and resume capabilities
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-07-29 19:03:52 -04:00
zhzhuang-zju
f24663b1e4
optimization: add retry when clean up mark from resourcetemplate failed
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-07-27 11:10:52 +08:00
whitewindmills
91f72f998c
Transplant propagation policy finalizer to karmada-webhook
...
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-07-08 10:23:38 +08:00
changzhen
64a5d0fa7a
remove pp/cpp namespace/name labels
...
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-06-03 09:58:19 +08:00
RainbowMango
845fb3376f
fix golint issue introduced by #4950
...
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-05-21 11:30:32 +08:00
karmada-bot
1ebaf1d5a8
Merge pull request #4950 from whitewindmills/bindID-webhook
...
cleanup dead code of generating binding permanent id
2024-05-21 10:22:25 +08:00
whitewindmills
a9f3c02948
clean up dead code of generating binding permanent id
...
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-05-16 16:46:28 +08:00
whitewindmills
bfc0f6fea6
cleanup dead code of generating PropagationPolicy permanent id
...
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-05-16 14:23:06 +08:00
zhzhuang-zju
48425663cc
e2e: Remove annotaions when pp/cpp is deleted
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-04-28 15:15:49 +08:00
whitewindmills
59b8835bda
Deprecate name/namespace labels of pp/cpp
...
Co-authored-by: changzhen <changzhen5@huawei.com>
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-04-18 14:21:02 +08:00
whitewindmills
52e5bc055e
Add finalizer for propagation policy
...
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-04-17 21:38:50 +08:00
Amir Alavi
7dbfc9f22b
propagate `Secret` of type `kubernetes.io/service-account-token`
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-04-11 09:45:23 -04:00
whitewindmills
506c24f759
Use RetryOnConflict for applying CRB
...
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-04-09 10:51:58 +08:00
changzhen
e511ad7bfc
remove old MergeAnnotation func and rename ReplaceAnnotation func to MergeAnnotation
...
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-03-30 09:43:12 +08:00
changzhen
b808f37847
fix wrong annotation marks on resource
...
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-03-26 20:00:14 +08:00
Lan Liang
cd2812e30e
Delete the labels of uid.
...
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-03-18 03:00:19 +00:00
karmada-bot
2cfa7e6efc
Merge pull request #4555 from whitewindmills/deprioritized-preemption
...
Optimize deprioritized policy preemption logic
2024-03-01 12:17:33 +08:00
whitewindmills
e88797b2dc
Optimize deprioritized policy preemption logic
...
Use the priorityequeue to sort the listed policies to avoid multiple preemption.
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-02-29 15:52:38 +08:00
chaosi-zju
926e34a7ad
implementation of the LazyActivation preference for Policy.
...
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-01-25 20:56:31 +08:00
zhzhuang-zju
774b9dcad2
cleanup: remove label when pp is deleted
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-01-12 14:11:23 +08:00
karmada-bot
92e362ae20
Merge pull request #4387 from whitewindmills/cpp-cleanup
...
ensure resource template be un-claimed when deleting cluster policy
2023-12-18 11:51:14 +08:00
jwcesign
e77fe55851
feat: fix conflicts with pp
...
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-14 19:46:46 +08:00
whitewindmills
f84a0e5793
ensure resource template be un-claimed when deleting cluster policy
...
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-12-07 13:45:31 +08:00
karmada-bot
55547b2acf
Merge pull request #4199 from jwcesign/add-id-label
...
feat: add resource id label
2023-11-23 10:44:52 +08:00
karmada-bot
4fe9dff3a8
Merge pull request #4204 from zhy76/copyright
...
feat: add license and verify license for code file
2023-11-22 10:23:52 +08:00
jwcesign
7e6387e98f
feat: add resoruce id label
...
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-20 11:07:11 +08:00
karmada-bot
a4b14442a7
Merge pull request #4245 from whitewindmills/policy-cleanup
...
ensure resource template be un-claimed when deleting policy
2023-11-16 16:12:47 +08:00
whitewindmills
d3e6e107aa
ensure idempotence when deleting policy
...
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-11-16 13:45:41 +08:00
zhy76
adef1e5974
feat: add license and verify license for code file
...
Signed-off-by: zhy76 <958474674@qq.com>
2023-11-16 11:11:21 +08:00
zhzhuang-zju
3de4fe1f6f
Restrict “configmap/extension-apiserver-authentication” object from being distributed to member clusters
...
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-11-15 10:19:45 +08:00
xiaoqing
2879c8da93
Don't send event when object no matched any propagation policy
...
Signed-off-by: xiaoqing <xiaoqingnb@gmail.com>
2023-09-12 13:25:45 +08:00
jwcesign
2c48bd7f99
cleanup: add uid in resource and owner information in annotations
...
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-08-26 17:02:13 +08:00
chaosi-zju
915c35dad7
Detect priority change happend on ClusterPropagationPolicy
...
and enqueue ClusterPropagationPolicy that could repreempte.
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-08-24 15:28:13 +08:00
RainbowMango
62a0e50fa2
Detect priority change happend on PropagationPolicy
...
and enqueue PropagationPolicy that could repreempte.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-08-23 11:11:05 +08:00
karmada-bot
e5277b6317
Merge pull request #3879 from whitewindmills/detector-resource
...
fix bug: avoid updating directly cached resource template
2023-08-03 17:22:45 +08:00
whitewindmills
909ba8527a
avoid updating directly cached resource template
...
for clean up policy
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-08-03 14:59:54 +08:00