Commit Graph

53 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 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
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
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
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
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
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
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
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
whitewindmills 2f4ccbfbd2 add GroupResource
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-05-06 18:17:00 +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
Fish-pro 05c759a19a Use http constants instead of string
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
2023-02-07 15:51:00 +08:00
yingjinhui 167e13259f support pod subresource (attach, exec, port-forward) through global proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2023-02-01 19:31:08 +08:00
RainbowMango a1e8f164cb adopt static check issues
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-31 09:22:41 +08:00
yingjinhui ce158ec243 stop proxy cache asynchronously
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2023-01-09 17:11:40 +08:00
karmada-bot d34a33edd0
Merge pull request #3010 from yanfeng1992/fixbug-search-notReady-cluster
search filter out not ready cluster
2023-01-03 15:27:54 +08:00
huangyanfeng 04d16b4b29 search filter out not ready cluster
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>

search filter out not ready cluster fix ut

Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>

search filter out not ready cluster fix lint

Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>

search filter out not ready cluster fix log and add comment

Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>

search filter out not ready cluster fix  comment

Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2022-12-30 13:57:37 +08:00
chen zechun 83d43235e8 Uniform error log output starts with uppercase
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-12-28 19:12:36 +08:00
RainbowMango 37ba914420 quick fix for StandardStorage interface extension
quick fix for kubectl apply options validation

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-11-23 09:52:48 +08:00
raymondmiaochaoyue 0dc6ab974a make multi cluster ResourceVersion string stable
Signed-off-by: raymondmiaochaoyue <raymondmiaochaoyue@didiglobal.com>
2022-11-16 10:51:15 +08:00
yingjinhui 2d6f491c61 refactor util.BuildClusterConfig
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-11-09 00:26:19 +08:00
chaunceyjiang 1a6b35649c replace the ioutil by the os and io
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-11-01 14:15:26 +08:00
yingjinhui 38b5eabb4a clean up proxy repeating code
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-31 21:35:52 +08:00
raymondmiaochaoyue 5c911ee09d fix test error
Signed-off-by: raymondmiaochaoyue <raymondmiaochaoyue@didiglobal.com>
2022-10-31 17:55:30 +08:00
raymondmiaochaoyue 7e24783b36 Add proxy framework.
Signed-off-by: raymondmiaochaoyue <raymondmiaochaoyue@didiglobal.com>
2022-10-31 14:50:15 +08:00
yingjinhui c8ca014081 [ut] add ut for proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-14 21:59:45 +08:00
yingjinhui b57ef199c9 [fix] close result chan when watchMux stopped
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-13 12:25:09 +08:00
karmada-bot abc0f7c75b
Merge pull request #2481 from ikaven1024/pr-metrics
add native resource metrics in proxy
2022-09-09 11:19:12 +08:00
yingjinhui 178c4ae5c1 fix concurrent map writes panic while list via proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-09-07 20:32:28 +08:00
yingjinhui 6a4674bc50 add native resource metrics in proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-09-07 16:32:06 +08:00
yingjinhui a9fcfa2ecd add cache source annotation for objects returned by proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-09-07 15:48:14 +08:00
yingjinhui 0128c84f72 creating member cluster resource via proxy should returns MethodNotSupported
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-08-24 12:17:06 +08:00