Commit Graph

5916 Commits

Author SHA1 Message Date
karmada-bot 6e41d9b930
Merge pull request #5666 from mohamedawnallah/unitTestNamingUtil
operator/pkg/util: unit test naming
2024-10-11 10:08:22 +08:00
karmada-bot cadb9461a8
Merge pull request #5667 from mohamedawnallah/unitTestTemplateUtil
operator/pkg/util: unit test template
2024-10-11 10:05:22 +08:00
Mohamed Awnallah 56bdcc4fed operator/pkg/util: unit test template
In this commit, we unit test template on parsing template functionality
on parsing and executing html templates with passed args.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-10 17:22:35 +03:00
Mohamed Awnallah 32a85f0df3 operator/pkg/util: unit test naming
In this commit, we unit test naming `generateResourceName` utility
on given karmada component name and suffix.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-10 16:49:33 +03: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
karmada-bot 84a1c654be
Merge pull request #5661 from mohamedawnallah/unitTestEndpointUtil
operator/pkg/util: unit test endpoint
2024-10-10 16:48:21 +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
Mohamed Awnallah 9afcc155a2 operator/pkg/util: unit test endpoint
In this commit, we unit test endpoint on getting control plane
endpoint and API Service IP.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-10 10:47:17 +03:00
Mohamed Awnallah ecdc909505 operator/pkg/tasks: unit test apiserver
In this commit, we introduce unit tests for the apiserver init
task in the operator pkg by testing the running and waiting operations
on Karmada API Server and Karmada Aggregated API Server.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-10 07:54:54 +03:00
karmada-bot 5692e289a8
Merge pull request #5319 from zhzhuang-zju/poliyMarks
skip cleanup when the poliy claim metadata changed
2024-10-10 11:46:22 +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
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 c16e52a3ec
Merge pull request #5630 from mohamedawnallah/addTestInitOperatorPKGHelpers
operator/pkg: add test helpers
2024-10-09 11:58: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
Mohamed Awnallah fdf7b53586 operator/pkg: add test helpers
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-09 04:57:48 +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
karmada-bot 2a78e2b2f6
Merge pull request #5591 from sophiefeifeifeiya/feat-fieldoverrider
feat: add fieldoverrider
2024-10-09 09:43:21 +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
karmada-bot f656d9a2a0
Merge pull request #5530 from a7i/skip-interpret-health
skip interpret health of resources without a hook
2024-10-08 16:41:20 +08:00
karmada-bot 52a5b4cdf1
Merge pull request #5277 from tiansuo114/doc
docs: add proposal of karmadactl init support config file
2024-10-08 12:12:20 +08:00
karmada-bot ba960f18c4
Merge pull request #5648 from karmada-io/dependabot/github_actions/sigstore/cosign-installer-3.7.0
build(deps): bump sigstore/cosign-installer from 3.6.0 to 3.7.0
2024-10-08 10:46:20 +08: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
dependabot[bot] 70dd250ff7
build(deps): bump sigstore/cosign-installer from 3.6.0 to 3.7.0
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-07 05:13:03 +00: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
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
karmada-bot 62ae95eaf9
Merge pull request #5568 from jklaw90/fix-sts-pvc
Avoid treating PVC managed by VolumeClaimTemplate as dependencies
2024-10-05 21:05:17 +08: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
karmada-bot 6b18b6e120
Merge pull request #5579 from chaosi-zju/chart-index
Add helm index for v1.10.0 and v1.11.0
2024-10-04 10:14:17 +08:00
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
tiansuo114 07803e4817
docs: add proposal of karmadactl init support config file
Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

add

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

add file change

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix doc

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix comment

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>
2024-10-01 09:56:17 +08:00
karmada-bot 8cc712f698
Merge pull request #5627 from chaosi-zju/local-up
Allow `hack/local-up-karmada.sh` to use latest pre-built images
2024-09-30 14:43:13 +08:00
karmada-bot 8308cb1976
Merge pull request #4184 from zhzhuang-zju/trivy
ci: add schedule image-scanning
2024-09-30 09:50:14 +08: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
chaosi-zju ab134cad7f supports specifying whether need making local images in local up installation
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-09-29 11:20:39 +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
Mohamed Awnallah 6c490dcefa operator: depend on aggregator.Interface for DI
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-27 15:16:25 +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