Commit Graph

101 Commits

Author SHA1 Message Date
JimDevil 93c09c1c85 fix: resourceregistry merge the same cluster gvk's namespace
Signed-off-by: JimDevil <709192853@qq.com>
2025-01-21 21:18:47 +08:00
Mohamed Awnallah 627b464489 pkg/search/controllers_test: wait for cache sync
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-12-11 07:06:43 +02:00
Mohamed Awnallah 6144ea5a9b cmd+hack+operator+pkg: unify addons constants
In this commit we unify the usage of addon names i.e
`karmada-descheduler`, `karmada-scheduler-estimator`, `karmada-search`,
and `karmada-metrics-adapter` across the codebase.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
Co-authored-by: Hongcai Ren <renhongcai@huawei.com>
2024-12-05 18:45:44 +02:00
karmada-bot 6f4d69cf8b
Merge pull request #5875 from mohamedawnallah/addressSearchControllerFlakeTest
pkg/search/controllers_test: address flaky test
2024-11-28 19:23:03 +08:00
chaosi-zju 13c28a00b2 fix code typo errors
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-28 11:01:54 +08:00
Mohamed Awnallah fcfbf700cd pkg/search/controllers_test: address flake test
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-27 16:26:41 +02:00
changzhen 7da64235a1 add group/values for resources
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-22 14:35:08 +08:00
changzhen 7f7879dfd3 fix flake test of TestUpdateClusterEventHandler
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-22 12:00:56 +08:00
karmada-bot 079d0ab7a9
Merge pull request #5846 from XiShanYongYe-Chang/adjust-with-readinessCheck
Wait for search multiClusterCache ReadinessCheck success
2024-11-22 09:46:58 +08:00
changzhen 9367ca9352 add ServerRunOptions in the search options
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-21 21:28:58 +08:00
changzhen 41dccd7d18 wait for search multiClusterCache ReadinessCheck to be ready
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-21 21:19:03 +08:00
RainbowMango 02861c5ca0 AsyncWorker adopt typed rate limiter
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-21 12:15:00 +08:00
karmada-bot 3acc14c0f0
Merge pull request #5810 from mohamedawnallah/unitTestKarmadaSearchController
pkg/search: unit test controller
2024-11-15 17:37:53 +08:00
karmada-bot 0d7d2f92d2
Merge pull request #5807 from RainbowMango/pr_bump_k8s_v1312
Bump Kubernetes dependencies from v1.30.2 to v1.31.2
2024-11-15 09:20:52 +08:00
SataQiu c9e6ce5387 karmada-search: support field selector for corev1 resources
Signed-off-by: SataQiu <shidaqiu2018@gmail.com>
2024-11-13 21:48:43 +08:00
Mohamed Awnallah dc2eea8710 pkg/search: unit test controller
In this commit, we unit test karmada search controller
on creating new controller and handling the following events
watched by the shared informer: `addCluster`, `updateCluster`,
`deleteCluster`, `addResourceRegistry`, `updateResourceRegistry`,
and `deleteResourceRegistry` making sure those handled and cached
correctly to the indexer.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-13 01:33:34 +02:00
RainbowMango fc1df776dc Adopt controller-runtime braking change: TypedReconciler
Reference PR2799
Adopt Kubernetes#125483 introduced ReadinessCheck
Adopt Kubernetes breaking change: EffectiveVersion
Reference PR: 122891

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-12 17:52:46 +08:00
Mohamed Awnallah c059c68f9b pkg/search: unit test karmada search APIServer
In this commit, we unit test karmada search APIServer
on creating REST storage and installing the API group.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-06 01:15:31 +02:00
huangyanfeng e7b6513db0 HasResource should return whether resource is registered not cached
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2024-10-14 17:21:25 +08:00
whitewindmills 58c15c8ed9 fix code inspection errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-06-12 17:55:59 +08:00
zhzhuang-zju 309c67701b bump golangci to v1.58.0
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-05-13 09:32:13 +08:00
RainbowMango 8cf31bfc37 Adopt Kubernetes #121390: remove etcd page
Adopt Kubernetes #118653, introduce VolumeResourceRequirements
Remove APIPriorityAndFairness feature gates from
karmada-aggregated-apiserver.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-05-06 11:36:54 +08:00
niuyueyang 4aecca59ef support node/pod TableConvertor.
Signed-off-by: niuyueyang <719415781@qq.com>
2024-02-05 11:37:13 +08:00
RainbowMango 67fc70d5ac Nominate Yuan peng, Zhuang, and Yan feng as new reviewers
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-01-23 15:05:28 +08:00
karmada-bot d508417a1e
Merge pull request #4554 from yanfeng1992/fix-member-apienable
search add check member cluster api enable
2024-01-23 10:15:44 +08:00
RainbowMango c47e12a442 bump golangci-lint to v1.55.2
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-01-21 12:34:24 +08:00
huangyanfeng b6ff5b8cc5 search add check member cluster api enable
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2024-01-16 14:29:13 +08:00
RainbowMango abba80d6c9 Bump Kubernetes dependencies to v1.28.5
Adopts changes made by kubernetes#119207, implements RequestWatchProgress interface
Adopts changes made by kubernetes#116648, applyTo take in clients

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-12-25 10:40:18 +08:00
Zhizhen He 25a62c6c57
fix typo
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-12-17 16:12:03 +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
xigang 9c9c52cb2e karmada-search: Fix lock race affects watch RestChan not close, causing client watch api to hang
Signed-off-by: xigang <wangxiang2014@gmail.com>
2023-11-13 14:39:01 +08:00
whitewindmills c8423cb237 fix spelling errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-09-04 10:22:39 +08:00
RainbowMango 4ee4b22f05 Adopt Kubernetes breaking changes: PR 113542 which require singular names for core types
Adopt breaking change of contriller-runtime PR 2122
Adopt breaking change of contriller-runtime PR 2296
Adopt breaking change of controller-runtime PR 2139
Adopt breaking change of controller-runtime PR 2135
Adopt breaking change of Kubernetes PR 116218
Adopt breaking change of controller-runtime PR 2149
Adopt breaking change of controller-runtime PR 2150
Adopt breaking change of controller-runtime PR 2134
Adopt breaking change of controller-runtime PR 2293
Adopt breaking change of controller-runtime PR 2144
Adopt k8s feature: watch list. PR 115402
Adopt breaking change of Kubernetes PR 117102
Adopt Kubernetes change: disable staticcheck
Fix unit tests that failure due to fake-client behavior changes.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-07-29 16:47:38 +08:00
yingjinhui fda27d96bb fix ut in TestMultiClusterCache watch
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2023-07-29 13:38:46 +08:00
lizhen6 8fddeea550 refactor search reconciling logic
Signed-off-by: lizhen6 <lizhen6@360.cn>
2023-06-30 09:50:41 +08:00
xigang 889466ffd1 fixed supported to supported naming
Signed-off-by: xigang <wangxigang2014@gmail.com>
2023-06-11 11:03:51 +08:00
karmada-bot 6089fa3794
Merge pull request #3527 from ikaven1024/proxy
Support namespace filter in RR for search proxy
2023-05-22 19:55:54 +08:00
karmada-bot 8594406e5f
Merge pull request #3398 from whitewindmills/code-cleanup
Fix inspection errors
2023-05-19 20:28:53 +08:00
whitewindmills 89295f9606 Fix inspection errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-05-17 17:06:27 +08:00
yingjinhui 67351f48c8 Support namespace filter in RR for search proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2023-05-15 21:52:33 +08:00
karmada-bot c8874ee878
Merge pull request #3497 from whitewindmills/search-debug
add GroupResource
2023-05-11 21:14:24 +08:00
xigang d980d2e19e karmada-search: improve opensearch backend logs
Signed-off-by: xigang <wangxigang2014@gmail.com>
2023-05-08 17:31:33 +08:00
whitewindmills 2f4ccbfbd2 add GroupResource
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-05-06 18:17:00 +08:00
karmada-bot b841c5493d
Merge pull request #3478 from xigang/fix/search_controller
karmada-search: ResourceRegistry controller can't handle DeletedFinalStateUnknown it gets from controller framework
2023-04-29 10:14:14 +08:00
xigang 929e66f06c Fix: SearchController can't handle DeletedFinalStateUnknown it gets from controller framework
Signed-off-by: xigang <wangxigang2014@gmail.com>
2023-04-28 17:16:13 +08:00
xigang 50d155f72a Fix: cleanup ResourceRegistry controller logs
Signed-off-by: xigang <wangxigang2014@gmail.com>
2023-04-28 11:31:47 +08:00
yingjinhui 89245212c8 fill cluster rv in proxying list
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2023-04-20 18:58:55 +08:00
niuyueyang daeac005d8 if start many watcher to watch pod.
pod resourceVersion will base64 duplicate.
soo deepCopy event.

Signed-off-by: niuyueyang <719415781@qq.com>
2023-04-10 20:01:11 +08:00
karmada-bot 861bc7af9c
Merge pull request #3312 from tedli/kindlist
response actual resource list from search api
2023-03-23 14:47:32 +08:00
lizhen6 47b0551a56 response actual resource list type
Signed-off-by: lizhen6 <lizhen6@360.cn>
2023-03-22 16:55:13 +08:00