Commit Graph

17 Commits

Author SHA1 Message Date
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
RainbowMango 58c3765684 Add stateful application failover status injection feature gate
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-29 16:27:36 +08:00
changzhen 3c0c9b8a41 add ut for parseJSONValue function to cover the JSONPath main parse ability
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-29 09:37:26 +08:00
changzhen 46dbf076e9 build PreservedLabelState when triggering evition
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-28 11:25:42 +08:00
mszacillo a393653723 Failover controllers now build eviction tasks for purgemode immediately
Signed-off-by: mszacillo <mszacillo@bloomberg.net>
2024-11-26 11:39:09 -05: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
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
xovoxy 38ee277de7 optimize: used unified context in controller
Signed-off-by: xovoxy <xilovele@gmail.com>
2024-08-06 11:44:20 +08:00
whitewindmills 4af54fb68b Print seconds to avoid unreadable minutes
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-08-05 19:04:34 +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
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
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
rayywu 7864e11267 Add UT for crb_application_failover_controller.go and rb_application_failover_controller.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-06-05 20:30:47 +08:00
rayywu e97d29500b Add UT for pkg/controllers/applicationfailover/common.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-06-02 00:26:49 +08:00
Poor12 3e63826f97 fix application controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-08 10:48:43 +08:00
Poor12 d06fe2b5b3 add application failover controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-06 10:36:54 +08:00