Commit Graph

19 Commits

Author SHA1 Message Date
mszacillo 01be91b9db GroupClusters should sort by score and availableReplica count
Signed-off-by: mszacillo <mszacillo@bloomberg.net>
2024-07-08 17:14:19 -04: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
RainbowMango c47e12a442 bump golangci-lint to v1.55.2
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-01-21 12:34:24 +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
whitewindmills c8423cb237 fix spelling errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-09-04 10:22:39 +08:00
Tanggui Bian 10b5ff2036 Adopt zones in scheduler spread by constraints
Signed-off-by: Tanggui Bian <softwarebtg@163.com>
2023-08-26 16:34:20 +08:00
whitewindmills ed2fcea68d add group selection algorithm
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-03-30 17:01:23 +08:00
karmada-bot 3d06bb84a3
Merge pull request #3000 from Fish-pro/fix/logupperstart
Uniform klog output starts with uppercase
2022-12-29 12:28:50 +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
Poor12 dbcf60a696 log error when replicaDivisionPreference is Weighted and WeightPreference is nil
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-12-23 14:25:18 +08:00
changzhen 8b4eb7b310 fix bug of #2447: when replicaDivisionPreference is Weighted and WeightPreference is nil
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-30 21:51:50 +08:00
AllenZMC eecb74f513 add ut for spreadconstraint
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-08-07 23:28:00 +08:00
yingjinhui dafe30c649 fix test fail on arm64 mac `panic: permission denied`, removing gomonkey
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-05-16 20:07:40 +08:00
huone1 7f5809ce6e support region spread constraint
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-04-26 11:16:48 +08:00
RainbowMango 501d586462 Introduce AssignedReplicasForCluster for ResourceBinding
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-04-22 11:49:18 +08:00
huone1 960b2f924d [optimize]ensure that the selected clusters has sufficient available resources
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-04-20 15:16:57 +08:00
huone1 785ad5dc63 add the ut case for selecting cluster
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-24 16:03:59 +08:00
huone1 c69d0e0eda refactor the selectclusters process
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-23 14:28:16 +08:00