Commit Graph

3064 Commits

Author SHA1 Message Date
karmada-bot d8b1889321
Merge pull request #5682 from anujagrawal699/addedTests-pkg/util/lifted/podtemplate.go
Added unit tests for pkg/util/lifted/podtemplate.go
2024-10-14 11:59:25 +08:00
karmada-bot e117edcfc3
Merge pull request #5684 from anujagrawal699/addedTests-pkg/util/lifted/-validateclustertaints.go-validatingmcs.go
Added tests for validateclustertaints.go and validatingmcs.go
2024-10-14 10:59:25 +08:00
LavredisG 8df8c0f3db
Update interface.go
Signed-off-by: LavredisG <lavredisgoume@gmail.com>
2024-10-13 12:41:50 +03:00
Anuj Agrawal b30b04fa4b Added tests for pkg/util/lifted/validateclustertaints.go and validatingmcs.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-12 18:34:30 +05:30
Anuj Agrawal 5124c2d164 Added unit tests for pkg/util/lifted/podtemplate.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-12 17:20:11 +05:30
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 b52775f926
Merge pull request #5671 from chaunceyjiang/fieldoverrider_validate
feat: validate fieldOverrider operation
2024-10-12 10:10: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
chaunceyjiang f45aedb716 feat: validate fieldOverrider operation
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2024-10-11 14:59:04 +08:00
RainbowMango e9e3c62db8 Update file line terminators to LF
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-10-11 11:05:13 +08:00
karmada-bot 5dd4ab80ad
Merge pull request #5663 from anujagrawal699/addedTests-pkg/util/lifted/validatingfhpa.go
Added unit tests for FederatedHPA validation
2024-10-10 20:21:22 +08:00
karmada-bot 4a77d619fe
Merge pull request #5649 from anujagrawal699/addedTests-pkg/descheduler/core
Added new tests and refractored old in pkg/descheduler/core
2024-10-10 17:57:21 +08:00
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 e9f4e7a6ca Added unit tests for FederatedHPA validation
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-10 13:55:15 +05:30
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
zhzhuang-zju 08026dc483 skip cleanup when the poliy claim metadata changed
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-10-10 10:39:59 +08:00
karmada-bot 11d5c971fe
Merge pull request #5563 from zhzhuang-zju/preemption
Clean up the residual annotations when resources are preempted by pp from cpp
2024-10-09 12:13:20 +08:00
karmada-bot 376d20376c
Merge pull request #5542 from mohamedawnallah/unitTestInterpreter
pkg/webhook: unit test Interpreter
2024-10-09 11:52:20 +08:00
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
karmada-bot c5a5c84323
Merge pull request #5653 from anujagrawal699/addedTests-pkg/descheduler/descheduler.go
Added tests for pkg/descheduler/descheduler.go
2024-10-09 10:49:21 +08:00
zhzhuang-zju 69a07ed3a0 Clean up the residual annotations when resources are preempted by pp from cpp
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-10-09 10:37:09 +08:00
Mohamed Awnallah c571cfb39a pkg/webhook: test Interpreter
In this commit, we introduce unit tests for the `Interpreter` webhook
across `Decoder`, `HTTP`, `Injection`, `Response`, and `Webhook` components.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-09 05:26:27 +03:00
karmada-bot c6f3de1ce9
Merge pull request #5641 from anujagrawal699/addedTests-pkg/scheduler/event_handler.go
Added tests for pkg/scheduler/event_handler.go
2024-10-09 09:48:20 +08:00
Anuj Agrawal c493e04c6f Added tests for pkg/descheduler/descheduler.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-08 21:37:48 +05:30
sophie 6bf6f305b8 feat: add fieldoverrider
Signed-off-by: sophie <yl5357@columbia.edu>
2024-10-08 10:36:32 -04:00
Anuj Agrawal fc8b905aaa Added new tests and refractored old in pkg/descheduler/core
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-07 20:33:29 +05:30
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
Amir Alavi dbed85441a
skip interpret health of resources without a hook
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-10-05 11:09:52 -04:00
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
Julian Lawrence 902bb1bbc9 fix sts pvc logic
Co-authored-by: yelshall <youssuf.elshall@zendesk.com>
Signed-off-by: Julian Lawrence <julianlawrence@gmail.com>
2024-10-02 19:45:23 -07:00
karmada-bot 59e302558d
Merge pull request #5616 from mohamedawnallah/dependOnClientSetInterface
operator+pkg:  depend on `clientset.Interface` instead of `*clientset.Clientset`
2024-09-29 15:11:12 +08:00
Mohamed Awnallah a640f0969f operator+pkg: depend on clientset.Interface for DI
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-27 15:35:40 +03:00
karmada-bot 58612d3624
Merge pull request #5606 from anujagrawal699/addedTests-controllers/workloadrebalancer
Improved test coverage for workloadrebalancer controller
2024-09-27 15:12:10 +08:00
karmada-bot e4c6f54c7a
Merge pull request #5612 from wangxf1987/fix/improve-log
Show more debug logs when failed to build resource model due to `getIndex` fails
2024-09-27 14:56:11 +08:00
Anuj Agrawal 9bb8b5b0df Improved test coverage for workloadrebalancer controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Changed the resource to clusterrole

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

Added tests for workloadrebalancer controller

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-09-27 11:43:03 +05:30
wangxiaofei67 8762d280b1 fix: when the "getIndex" fails, display more data details in logs.
Signed-off-by: wangxiaofei67 <wangxiaofei67@jd.com>

fix: add signoff

Signed-off-by: wangxiaofei67 <wangxiaofei67@jd.com>

fix: optimize prompt messages in the logs
2024-09-27 13:59:59 +08:00
karmada-bot 087d9ea52a
Merge pull request #5601 from wulemao/karmadactl-promote
guarantee the promotion can be rolled back safely
2024-09-27 12:20:10 +08:00
RainbowMango 6b3a781491 Correct SuspendDispatching comments and add notes.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-09-26 16:50:12 +08:00
karmada-bot 8039769a71
Merge pull request #5595 from anujagrawal699/addedTests-controllers/remediation
Added tests for remediation controller
2024-09-26 10:36:09 +08:00
wulemao 7f082af21a guarantee the promotion can be rolled back safely
Signed-off-by: wulemao <1194736083@qq.com>
2024-09-26 10:24:19 +08:00
karmada-bot 879ead91a8
Merge pull request #5600 from anujagrawal699/addedTests-controllers/unifiedauth
Added tests for unifiedauth controller
2024-09-25 11:50:09 +08:00
Anuj Agrawal 32ae2178c2 Added tests for unifiedauth controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-09-24 22:12:23 +05:30
Anuj Agrawal 270819a779 Added tests for remediation controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-09-23 20:45:01 +05:30
RainbowMango 8ad4b5a989 Proposing structured field overrider API
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-09-23 20:37:44 +08:00
karmada-bot 721107da86
Merge pull request #5507 from mohamedawnallah/unitTestFederatedHPAWebhook
pkg/webhook: unit test Federated HPA
2024-09-23 17:40:07 +08:00
karmada-bot 12cd43ef42
Merge pull request #5589 from anujagrawal699/addedTests-controllers/multiclusterservice
Added tests for multiclusterservice controller
2024-09-23 16:01:07 +08:00
karmada-bot a70551ad92
Merge pull request #5575 from RainbowMango/pr_propose_preserve_api
Proposing API to support migration rollback
2024-09-23 15:42:07 +08:00
karmada-bot 9f23d2961d
Merge pull request #5552 from chaosi-zju/bind-descheduler
Remove deprecated --bind-address and --secure-port from karmada-descheduler
2024-09-23 14:47:07 +08:00