Commit Graph

19 Commits

Author SHA1 Message Date
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
chaosi-zju b605d9d637 ensure controller names are unique when emitting metrics
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-11 12:05:12 +08:00
Anuj Agrawal 547a6a94bc Added tests for gracefuleviction controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for gracefuleviction controller

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for gracefuleviction contoller

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for gracefuleviction controller

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for gracefuleviction controller

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-09-19 13:12:14 +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
Lan Liang ed0f26c328 cleanup pointer, use ptr.Toto obtain a pointer, ptr.Deref to dereference a pointer.
The new k8s.io/utils/ptr package provides generic wrapper functions,
which can be used instead of type-specific pointer wrapper functions.
This replaces the latter with the former, and migrates other uses of
the deprecated pointer package to ptr in affacted files.

See kubernetes/utils#283 for details.

Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-05-28 05:32:33 +00:00
changzhen dcd04aecfe add empty judgement for placement in taint-manager
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-05-21 16:23:13 +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
huangyanfeng 7c2b3e19ee if an error is non-nil not need to set Result.Requeue true
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2024-04-03 14:08:22 +08:00
chang.qiangqiang 9ec160ab9f fix(work): motify gracefulEvictionTasks sub field to pointer type
Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com>
2023-12-22 17:06:31 +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
chaunceyjiang c602c4ba02 fix: When suppression and graciously Tasks coexist in the GracefulEvictionTask queue, the graciously task cannot work.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-05-16 20:04:15 +08:00
chaunceyjiang 9592aad85f fix: graceful-eviction still works after an unexpected restart of karmada-controller-manager
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-05-03 20:49:58 +08:00
RainbowMango 7f484fd463 Revert "avoid the same cluster appearing in both spec.clusters and spec.gracefulEvictionTasks"
This reverts commit da44a5d9f9.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-04-26 15:17:27 +08:00
Poor12 da44a5d9f9 avoid the same cluster appearing in both spec.clusters and spec.gracefulEvictionTasks
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-25 10:22:08 +08:00
Poor12 2c9d900c28 add some fields for GracefulEvictionTask
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-24 14:59:27 +08:00
Poor12 e988f75fb0 add events for graceful eviction controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-26 10:27:10 +08:00
yanggang a0a7674d26
reuse context for controller-manager base-context
Signed-off-by: yanggang <gang.yang@daocloud.io>
2022-11-05 18:51:06 +08:00
changzhen e90edb23a5 Perceiving the health status of cluster scheduling results in graceful evictions
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-26 15:14:29 +08:00
changzhen 135efdb4a5 add grace-eviction-controller to evict cluster workload
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-15 09:34:47 +08:00