Commit Graph

294 Commits

Author SHA1 Message Date
Zach cfebd4dcb6
use meta.Accessor() in onResourceBindingUpdate() (#6141)
Signed-off-by: zach593 <zach_li@outlook.com>
2025-02-21 09:39:16 +08:00
zach593 ffefe654ae fixed some UTs did not pass apiversion and kind when generating unstructured.Unstructured
Signed-off-by: zach593 <zach_li@outlook.com>
2025-02-19 20:39:55 +08:00
RainbowMango 2f180f26cd Add ResourceBinding scheduling suspension helper functions to simplify code
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2025-01-06 17:39:59 +08:00
Marty Mcfly 7a85687026
feat: cluster-level resource scheduling suspend and resume capabilities (#5937)
* RB suspension: API change

Signed-off-by: Monokaix <changxuzheng@huawei.com>

* Feat: scheduler supports binging suspension

Signed-off-by: Monokaix <changxuzheng@huawei.com>

---------

Signed-off-by: Monokaix <changxuzheng@huawei.com>
2025-01-02 11:46:34 +08:00
LavredisG 8659df84d7
Update interface.go
Signed-off-by: LavredisG <lavredisgoume@gmail.com>
2024-12-16 13:35:12 +02:00
RainbowMango 02861c5ca0 AsyncWorker adopt typed rate limiter
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-21 12:15:00 +08:00
LavredisG ff92a84a9e Update group_clusters.go
Signed-off-by: LavredisG <lavredisgoume@gmail.com>
2024-11-20 00:34:29 +00: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
ipsum-0320 a41892b66e feat: add UT for group score calc
Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

feat: add UT for group score calc

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

feat: add UT for group score calc

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

feat: add unit test

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

chore: fix lint

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

feat: update the calc way of group score

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

re-test

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

chore: update comment

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

chore: re-test

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

fix: update weightUnit

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

Trigger checks

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

fix: lint error

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

fix: update the calc of group score

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

fix: golint error

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

feat: complete unit test

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

feat: add test

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>
2024-10-29 15:55:17 +08:00
ipsum-0320 9e349e60a8 feat: implement calc group score for duplicate to assign replicas evenly
Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

feat: implement calc group score for duplicate to assign replicas evenly

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

feat: calc group score for duplicate to assign replicas evenly

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>
2024-10-28 19:20:39 +08:00
karmada-bot 1cd75f4fd0
Merge pull request #5621 from ipsum-0320/Implement-group-score-calc-base
Implement calc group score for divided to assign replicas evenly
2024-10-26 18:26:36 +08:00
ipsum-0320 aa8cbda942 feat: calc group score by weight
Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

chore: update

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

re-test

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

feat: update basic score

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

chore: add comment

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

feat: calcGroupScoreForDivided

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

fix: lint error

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

chore: fix the comment

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

feat: resolve the comments

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>

fix: lint error

Signed-off-by: ipsum-0320 <trueman.0320@zju.edu.cn>
2024-10-26 14:11:33 +08:00
Anuj Agrawal 261cbdb70b Added second part of unit tests for pkg/scheduler
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added second part of unit tests for pkg/scheduler

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

Added second part of unit tests for pkg/scheduler

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-15 14:59:46 +05:30
karmada-bot bf771c7a8a
Merge pull request #5680 from anujagrawal699/part1-addedTests-pkg/scheduler/scheduler.go
Added first part of unit tests for pkg/scheduler
2024-10-15 12:09:26 +08:00
Anuj Agrawal 0d6d2d732e Added first part of unit tests for pkg/scheduler
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added first part of unit tests for pkg/scheduler

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-14 13:01:27 +05:30
LavredisG 8df8c0f3db
Update interface.go
Signed-off-by: LavredisG <lavredisgoume@gmail.com>
2024-10-13 12:41:50 +03:00
karmada-bot 839737dc1b
Merge pull request #5644 from anujagrawal699/addedTests-scheduler/metrics-scheduler/framework
Added tests for metrics and framework package of pkg/scheduler
2024-10-12 10:54:23 +08:00
karmada-bot d295576a5e
Merge pull request #5646 from anujagrawal699/addedTests-pkg/scheduler/core/common.go
Added tests pkg/scheduler/core/common.go
2024-10-11 18:28:23 +08:00
Anuj Agrawal 5dc2355172 Added tests for pkg/scheduler/core/common.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for pkg/scheduler/core/common.go

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-11 15:04:47 +05:30
karmada-bot f32780f9f8
Merge pull request #5637 from anujagrawal699/addedTests-pkg/scheduler/cache
Added tests for scheduler/cache
2024-10-10 17:27:23 +08:00
Anuj Agrawal 4a0fb95945 Added tests for scheduler/cache
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for pkg/scheduler/cache

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-10 08:19:55 +05:30
karmada-bot 33cb56d9de
Merge pull request #5642 from anujagrawal699/addedTests-pkg/scheduler/framework/plugins
Added tests for scheduler plugins
2024-10-09 11:32:20 +08:00
Anuj Agrawal 39d3ef3b11 Added tests for metrics and framework package of pkg/scheduler
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-05 21:11:32 +05:30
Anuj Agrawal e818659bb2 Added tests for scheduler/framework/plugins
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for scheduler/framework/plugins

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-05 00:34:00 +05:30
Anuj Agrawal 1b177e5fe6 Added tests for pkg/scheduler/event_handler.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-04 17:07:26 +05:30
huangyanfeng 4c416cec6f Skip cluster removal if already scheduled and API enablements are incomplete to prevent accidental removal.
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2024-09-18 14:23:00 +08:00
Joe Nathan Abellard b6fbcb4353 Add the ability to specify namespace to be used for discovering scheduler estimator services
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Address comments

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Address comments

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-09-09 07:21:57 -04:00
Vamshi Maskuri 49adbf8204 refactor
Signed-off-by: Vamshi Maskuri <117595548+varshith257@users.noreply.github.com>

add review comments

Signed-off-by: Vamshi Maskuri <117595548+varshith257@users.noreply.github.com>

fix lint
2024-08-21 22:28:42 +05:30
karmada-bot c3c90efeeb
Merge pull request #5316 from qinguoyi/perf-findpath
perf:make findFeasiblePaths faster
2024-08-08 13:50:28 +08:00
qinguoyi df681d0861 chore:clean up
Signed-off-by: qinguoyi <1532979219@qq.com>
2024-08-08 10:55:03 +08:00
qinguoyi 2db9dc4811 chore:clean up
Signed-off-by: qinguoyi <1532979219@qq.com>
2024-08-08 10:55:03 +08:00
qinguoyi a98041281d perf:make findFeasiblePaths faster
Signed-off-by: qinguoyi <1532979219@qq.com>
2024-08-08 10:55:03 +08:00
changzhen 1b4e829ffd update left slice length in the resortAvailableClusters func
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-08-05 17:24:35 +08:00
karmada-bot 145a67e873
Merge pull request #5280 from XiShanYongYe-Chang/update-pluginToClusterScores-length
[Cleanup] update pluginToClusterScores length from filterPlugins length to scorePlugins length
2024-07-30 22:17:21 +08:00
changzhen 0735ec0202 update pluginToClusterScores length from filterPlugins length to scorePlugins length
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-07-30 20:51:25 +08:00
chaosi-zju fbb7a5e926 only generate json patch for status filed when patchBindingStatus
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-07-30 15:37:50 +08:00
karmada-bot 15df251200
Merge pull request #5144 from mszacillo/sort-clusterinfo
GroupClusters should sort by score and availableReplica count
2024-07-10 14:53:03 +08:00
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
RainbowMango 82b61dcc69 Fix mockgen generated files not group imports issue
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-07-08 11:12:16 +08:00
zhzhuang-zju acdd2115c6 Adding TLS Certificate Authentication to gRPC
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-06-21 15:56:20 +08:00
RainbowMango 1c9395ba6e nominate code owners of scheduler, resourceinterpreter, apis
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-06-07 11:59:02 +08:00
mszacillo 23c9dc9a1e Account for unschedulable plugin result during maxreplica estimation
Signed-off-by: mszacillo <mszacillo@bloomberg.net>
2024-06-05 09:43:48 -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
whitewindmills b43e93136a Skip schedule deleting bindings
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-05-24 17:19:10 +08:00
karmada-bot 6cfed59332
Merge pull request #4930 from zhzhuang-zju/golangciwith1.58.0
Bump golangci-lint to v1.58.0
2024-05-15 17:20:19 +08:00
whitewindmills 0708b7d55b Call shutdown after being stopped
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-05-14 18:01:02 +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
karmada-bot 68577f19f9
Merge pull request #4743 from whitewindmills/deprecated-labels
Deprecate name/namespace labels of pp/cpp
2024-04-25 20:47:02 +08:00
chaosi-zju 0372cabba6 Introduce a mechanism to scheduler to actively trigger rescheduling
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-04-20 20:55:45 +08:00
whitewindmills 59b8835bda Deprecate name/namespace labels of pp/cpp
Co-authored-by: changzhen <changzhen5@huawei.com>
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-04-18 14:21:02 +08:00