huangyanfeng
7d229306bb
cleanup RunScorePlugins code comments
...
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2024-01-03 11:30:22 +08:00
RainbowMango
9a776a7503
Remove golang mock as it has been replaced with uber mock
...
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-12-22 17:12:35 +08:00
Lan Liang
159f68c19b
Replace golang/mock to uber-go/mock.
...
golang/mock is no longer maintained and should replace to go.uber.org/mock, check https://github.com/golang/mock
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2023-12-21 06:48:04 +00: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
whitewindmills
54b66e8b5d
adapt zones check in spread constraint plugin
...
check
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-08-24 20:15:24 +08:00
whitewindmills
45c995a9e1
add new schedule condition reason
...
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-07-17 18:38:41 +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
Poor12
d06fe2b5b3
add application failover controller
...
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-06 10:36:54 +08:00
Poor12
80eab7bcb3
add a clusterEvicted plugin
...
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-28 09:21:45 +08:00
Poor12
fc7d8fa3b8
Fix cluster_locality plugin when replicas == 0
...
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-03-23 10:58:09 +08:00
changzhen
9ca35d20f4
add bindingStatus in the schedule algorithm interface
...
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-25 17:04:49 +08:00
Poor12
a616758eeb
refactor some codes
...
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-17 10:41:03 +08:00
chaunceyjiang
d33deaeead
Add detailed information about the taint
...
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-12-15 10:57:36 +08:00
jwcesign
f954b44c22
UT: import gomock to make write ut easier
...
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-10-25 10:34:35 +08:00
Poor12
5836639f69
add metrics_recorder for scheduler framework
...
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-10-20 16:35:11 +08:00
raymondmiaochaoyue
6e1c4781f5
test registry.go
...
Signed-off-by: raymondmiaochaoyue <raymondmiaochaoyue@didiglobal.com>
2022-10-13 18:39:01 +08:00
Garrybest
b19cdb1031
add scheduling diagnosis
...
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-09-18 17:04:54 +08:00
changzhen
4049bf8285
don't consider the older cluster when filter with taint_toleration
...
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-30 20:52:23 +08:00
karmada-bot
37ffc7dfd5
Merge pull request #2135 from chaunceyjiang/scheduler_plugins
...
custom enable or disable of scheduler plugins
2022-07-20 15:59:44 +08:00
chaunceyjiang
fc600ae003
custom scheduler plugin
...
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-07-20 11:16:02 +08:00
karmada-bot
ab0883e73d
Merge pull request #2170 from RainbowMango/pr_rename_plugin
...
Rename scheduler plugin name
2022-07-19 10:27:43 +08:00
Garrybest
1d2028b10f
add taint manager
...
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-07-15 10:42:38 +08:00
RainbowMango
8159189708
Rename scheduler plugin name
...
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-07-11 18:05:08 +08:00
kerthcet
7f3b3dc072
feat: introduce registry to store plugins in framework initialization
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-04-15 15:09:40 +08:00
karmada-bot
a649575920
Merge pull request #1570 from gf457832386/add_filterplugin_cluster_property
...
add filter plugin ClusterProperty to filter cluster
2022-04-07 14:18:46 +08:00
gf457832386
4e436af66e
add filter plugin SpreadConstraint to filter cluster
...
Signed-off-by: gf457832386 <13278887558@163.com>
2022-04-07 12:04:35 +08:00
RainbowMango
545020a042
Setup binding helpers
...
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-03-28 15:31:39 +08:00
huone1
31201c6bf4
add plugin clusterLocality to favor cluster
...
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-25 15:13:12 +08:00
huone1
670cc154eb
extend the score process to support the normalizeScore and scoreWeight
...
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-18 11:39:04 +08:00
kerthcet
eba5d2f497
feat: quick return in filter phase when unsuccessful state returned
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-24 10:45:19 +08:00
guoyao
ae34e4d1b8
unify IsNodeReady function
...
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-15 11:35:03 +08:00
RainbowMango
56fbbe1054
adopt binding v1alpha2
...
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-09-28 17:03:46 +08:00
esto
a6165e47f9
update import-aliases
...
Signed-off-by: esto <1291156784@qq.com>
2021-09-15 15:13:14 +08:00
RainbowMango
0d0b2cd7a6
replace k/k with component-helpers
...
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-08-09 15:29:11 +08:00
Garrybest
9d62d21da0
fix bug: score plugin does not work
...
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-07-31 10:13:54 +08:00
RainbowMango
13aacdfdea
refactor utils for checking API enablements
...
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-07-07 19:47:15 +08:00
pengli
c6cf6b83fb
Add new scheduler plugin for checking if required api has installed in target cluster
...
Signed-off-by: pengli <justdoit.pli@gmail.com>
2021-07-01 21:51:00 +08:00
changzhen
5473488c04
fix golangci-lint: Implicit memory aliasing in for loop(G601)
...
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-06-01 16:42:57 +08:00
lihanbo
9834f8b981
add e2e test for taint toleration schedule
...
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-05-21 09:20:03 +08:00
lihanbo
483d5d9fa0
support schedule based on cluster taint toleration
...
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-05-21 09:20:03 +08:00
Rui Fang
f598cb4365
scheduler: fix bug of plugin invalid memory address ( #341 )
...
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-05-17 14:11:49 +08:00
yuhang
76429c6516
Fix panic when no clusters specified ( #340 )
...
Signed-off-by: futuretea <1913508671@qq.com>
2021-05-17 11:59:19 +08:00
Hanbo Li
bca72a58fb
support cluster label selector in scheduler ( #149 )
...
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-01-30 09:22:48 +08:00
Kevin Wang
4afcabe5f1
rename apigroup name, from propagationstrategy to policy
...
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-01-25 15:55:06 +08:00
Kevin Wang
e33559250c
rename membercluster to cluster in relevant implementations
...
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-01-23 09:53:52 +08:00
Kevin Wang
da394ab07a
rename membercluster api to cluster
...
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-01-23 09:53:52 +08:00
Zhonghu Xu
c59afde0e6
Added scheduler framework and basic functionality( #108 )
...
Signed-off-by: xuzhonghu <xuzhonghu@huawei.com>
2021-01-07 20:39:38 +08:00