Commit Graph

233 Commits

Author SHA1 Message Date
karmada-bot 2d8213fefb
Merge pull request #6294 from RainbowMango/pr_refactor_work_index
Move index register to dedicated package
2025-04-14 20:42:01 +08:00
chang.qiangqiang 6ac0f2cbed feat(detector): remove type convert in detector controller
Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com>
2025-04-14 10:50:03 +08:00
RainbowMango 5865ee6ce2 Refactor Work index WorkIndexByResourceBindingID and WorkIndexByClusterResourceBindingID
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2025-04-12 19:07:06 +08:00
wei-chenglai 02598f609b Fix lint issue ST1019
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2025-04-12 00:14:23 -04:00
karmada-bot 787fd3a64a
Merge pull request #6215 from kubeservice-stack/add-karmada-metrics
feat: add build_info metrics and go runtime metrics for karmada
2025-04-10 10:45:58 +08:00
dongjiang e07b0937ef
add build_info for karmada binary
Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-03-31 23:40:53 +08:00
karmada-bot 4137c49af4
Merge pull request #6095 from ctripcloud/ratelimiter
unify http ratelimiter for control plane client
2025-03-27 09:14:46 +08:00
karmada-bot 6810e88643
Merge pull request #6043 from vie-serendipity/feat/suspend
feat: replace instruction annotation with work suspendDispatching field
2025-03-20 17:21:40 +08:00
chang.qiangqiang 2b109eb9df fix(detector): add ratelimiteroptions for controllers
Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com>
2025-03-20 15:00:42 +08:00
vie-serendipity 4b437e40f4 feat: replace instruction annotation with work suspendDispatching field
feat: rename workIndex and mv GetWorkSuspendDispatching to helper

feat: modify the style of Deprecated
Signed-off-by: vie-serendipity <2733147505@qq.com>

feat: label and annotate workloads even though work is suspended

Signed-off-by: vie-serendipity <2733147505@qq.com>

test: fix ut for CreateOrUpdateWork

Signed-off-by: vie-serendipity <2733147505@qq.com>
2025-03-19 15:04:55 +08:00
zach593 696e52ef7e unify http ratelimiter for control plane client
Signed-off-by: zach593 <zach_li@outlook.com>
2025-02-28 22:37:12 +08:00
chaosi-zju eb9f2950a7 remove workaround code for resolving workqueue metrics loss by modifying import order
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-12-31 15:49:21 +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
RainbowMango a8e965321e Disable cluster failover by default which should be explicitly enabled by administrators after a fully evaluation.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-30 09:59:35 +08:00
zhzhuang-zju 3c91c7df8f replace csrapproving by agentcsrapproving
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-11-25 17:01:03 +08:00
zhzhuang-zju 103346111b add agentcsrapproving controller to auto approve agent csr
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-11-22 18:21:06 +08:00
karmada-bot 6795dba9d1
Merge pull request #5809 from CharlesQQ/introduce-flag-dependencies-distributor
feat(dependenciesdistributor):  introduce --concurrent-dependent-resource-syncs flag
2024-11-19 21:02:56 +08:00
zach593 e2827b1b2e Add index for Work to speed up the processing of resource binding related controllers
Signed-off-by: zach593 <zach_li@outlook.com>
2024-11-19 11:48:04 +08:00
chang.qiangqiang 066eec0b7d feat(dependenciesdistributor): introduced flag for dependencies-distributor
Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com>
2024-11-12 16:31:21 +08:00
whitewindmills 73c441f7a6 Remove BindAddress & SecurePort of karmada-controller-manager
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-09-14 10:54:15 +08:00
wei-chenglai f6d022f799 Standardize the health probe argument of karmada-controller-manager
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2024-08-27 16:29:01 +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
zhzhuang-zju 3989c4a82a silence the 'log.SetLogger(...) was never called; logs will not be displayed' error
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-04-29 20:12:24 +08:00
wangxiaofei67 3232c52d57 add: Use opts.ResyncPeriod as controlPlaneInformerManager and sharedFactory
Signed-off-by: wangxiaofei67 <wangxiaofei67@jd.com>
2024-04-25 21:15:05 +08:00
chaosi-zju c600991f36 Introduce a new API named WorkloadRebalancer to support rescheduling.
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-04-23 10:34:11 +08:00
chaunceyjiang 6f29134f1e Add QPS related parameters to control the request rate of metrics-adapter to member clusters.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2024-04-16 10:49:06 +08:00
chaosi-zju 8f5cc4995c sync deployment replicas when it is controlled by hpa
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-03-14 20:39:22 +08:00
changzhen 081610e33e add remedy controller
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-02-27 22:24:34 +08:00
jwcesign 38b2cae7e1 cleanup: enable revive(exported rule) checking
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-01-09 09:41:47 +08:00
RainbowMango 5a3fa76b27 Adopt breaking change made by controller-runtime#2407, moving metrics
options.
Adopt breaking change made by controller-runtime#2421, cache filtering
Fix deprecation in customresourceinterpreter webhook example

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-12-29 12:39:24 +08:00
huangyanfeng 22e4f4bb8c cleanup controllerruntime deprecated option SyncPeriod Namespace
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2023-12-21 10:25:08 +08:00
changzhen 2a9af895fc fix wrong featuregate writing with MultiClusterService
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-12-01 01:17:05 +08:00
changzhen 2dba706a76 add MultiClusterService featuregate
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-12-01 00:18:35 +08:00
jwcesign 5932615cba feat: support mcs with native svc name
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-30 15:55:15 +08:00
z00623291 33ae852fa0 List&watch mcs and service, reconcile the work in execution namespace
Signed-off-by: z00623291 <zhouhongcen1@huawei.com>
2023-11-29 17:50:26 +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
chaosi-zju a4828cc410 retain for hpa controlled Deployment resource
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-09-21 19:44:01 +08:00
lxtywypc 5ae8178ec3 add replicas syncer for resources with HPA
Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-09-20 17:29:34 +08:00
whitewindmills c8423cb237 fix spelling errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-09-04 10:22:39 +08:00
lxtywypc 67de65d892 Revert "Merge pull request #3808 from ctripcloud/refactor-execution-workstatus"
This reverts commit 90ccbcdfce, reversing
changes made to 24bb582950.

Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-08-31 14:23:58 +08:00
lxtywypc 89e3673fbb only update object in member cluster by execution controller
Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-08-16 16:36:22 +08:00
karmada-bot 9a862db2be
Merge pull request #3852 from jwcesign/delete-hpa-controller
cleanup: remove old version hpa controller
2023-08-03 09:43:52 +08:00
karmada-bot a2dc2e8bbb
Merge pull request #3874 from ctripcloud/enable-cache-sync-timeout-on-fed
use ClusterCacheSyncTimeout for resources on fed control plane as well
2023-08-02 11:24:44 +08:00
lxtywypc fad172d4e9 use ClusterCacheSyncTimeout for resources on fed control plane as well
Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-08-01 18:22:06 +08:00
changzhen 46204117e1 cleanup dependencies distributor
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-07-31 16:47:26 +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
jwcesign 20129ca5cd cleanup: delete old version hpa controller
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-07-27 17:36:21 +08:00
jwcesign 068022db24 feat: Support CronFederatedHPA to scale worloads/FederatedHPA at specific time
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-07-03 20:25:02 +08:00
chaunceyjiang a10f895c1e feat: Support modification synchronization of custom resources as dependency
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-06-26 10:43:51 +08:00
karmada-bot d5e604c24c
Merge pull request #3130 from yanfeng1992/fix-remove-cluster-re-queue
unjoin cluster check namespace reduce cluster enqueue
2023-06-16 11:41:50 +08:00