Commit Graph

5916 Commits

Author SHA1 Message Date
Anuj Agrawal 012517d81e Added first part of unit tests for pkg/detector
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added first part of unit tests for pkg/detector

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-23 12:24:26 +05:30
karmada-bot 0d55eadb89
Merge pull request #5659 from mohamedawnallah/unitTestWaitAPIClient
operator/pkg/util/apiclient: unit test wait
2024-10-17 20:41:29 +08:00
karmada-bot 29c97e9848
Merge pull request #5602 from mohamedawnallah/dependOnAggregatorInterface
operator/pkg: depend on `aggregator.Interface` instead of `*aggregator.Clientset`
2024-10-17 11:58:28 +08:00
karmada-bot 46d94ecc86
Merge pull request #5647 from mohamedawnallah/unitTestWorkflowJob
operator/pkg/workflow: unit test job
2024-10-17 11:12:28 +08:00
karmada-bot c230b14827
Merge pull request #5560 from mohamedawnallah/fixNullPointerDereferenceInAltNamesMutators
operator/pkg/certs: mitigate potential null pointer dereference in AltNames Mutators for both the `APIServer` and `EtcdServer`
2024-10-17 09:28:28 +08:00
karmada-bot a96390e489
Merge pull request #5652 from mohamedawnallah/unitTestPatcherOperatorPkg
operator/pkg/util: unit test patcher
2024-10-17 09:26:28 +08:00
Mohamed Awnallah 5ef98ec66f operator/pkg/util: unit test patcher
In this commit, we unit test the patcher in the karmada operator
pkg on patching the Deployment and StatefulSet K8S objects.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-16 19:59:19 +03:00
karmada-bot 19b32a2979
Merge pull request #5597 from a7i/amir/preserveResourcesOnDeletion
implement preserveResourcesOnDeletion to support migration rollback
2024-10-16 18:19:27 +08:00
karmada-bot 4db886790f
Merge pull request #5681 from anujagrawal699/part2-addedTests-pkg/scheduler/scheduler.go
Added second part of unit tests for pkg/scheduler
2024-10-16 15:51:27 +08:00
karmada-bot 0d520c0490
Merge pull request #5695 from anujagrawal699/addedTest-pkg/util/lifted/corev1printers.go-part1
Added first part of unit tests for pkg/util/lifted/corev1printers.go
2024-10-16 15:49:27 +08:00
karmada-bot 840300baf0
Merge pull request #5698 from anujagrawal699/addedTests-pkg/util/membercluster_client_test.go
Added tests for pkg/util/membercluster_client_test.go
2024-10-16 11:25:26 +08:00
Anuj Agrawal b98dc6e950 Added tests for pkg/util/membercluster_client_test.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for pkg/util/membercluster_client_test.go

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-15 22:58:00 +05:30
karmada-bot 47efa57102
Merge pull request #5679 from chaosi-zju/secret-local-config
standardize the naming of karmada config in local up method
2024-10-15 20:09:26 +08:00
chaosi-zju 1b79bbaf86 standardize the naming of karmada config in local up method
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-10-15 17:35:38 +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
Amir Alavi 68c0104bc4
remove labels and annotation from resources
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-10-14 22:49:59 -04:00
Amir Alavi 866959a072
implement preserveResourcesOnDeletion to support migration rollback
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-10-14 20:36:53 -04:00
Anuj Agrawal ace0e69099 Added first part of unit tests for pkg/util/lifted/corev1printers.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-14 22:12:15 +05:30
karmada-bot 268e6725a0
Merge pull request #5676 from mohamedawnallah/unitTestKubeConfigDeInit
operator/pkg/tasks/deinit: unit test kubeconfig
2024-10-14 15:54:25 +08:00
karmada-bot dcdabc9278
Merge pull request #5678 from mohamedawnallah/unitTestComponentDeInitTask
operator/pkg/tasks/deinit: unit test component
2024-10-14 15:32:25 +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
karmada-bot 7fe6bd183f
Merge pull request #5693 from karmada-io/dependabot/github_actions/aquasecurity/trivy-action-0.27.0
build(deps): bump aquasecurity/trivy-action from 0.24.0 to 0.27.0
2024-10-14 14:34:25 +08:00
dependabot[bot] ac3eaa00d1
build(deps): bump aquasecurity/trivy-action from 0.24.0 to 0.27.0
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.24.0 to 0.27.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](https://github.com/aquasecurity/trivy-action/compare/0.24.0...0.27.0)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-14 05:40:59 +00:00
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
karmada-bot 11b31751e0
Merge pull request #5657 from mohamedawnallah/unitTestWaitInitTask
operator/pkg/tasks/init: unit test wait
2024-10-14 10:00:25 +08:00
karmada-bot 9cf615c410
Merge pull request #5689 from LavredisG/patch-2
Update interface.go
2024-10-14 09:33: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
Mohamed Awnallah 085148bfc6 operator/pkg/util/apiclient: unit test wait
In this commit, we unit test the API client on waiting for API server,
API service, all pods constraint, some pods constraint, and the exponential
backoff utility.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-12 10:46:22 +03:00
Mohamed Awnallah 04d073c12d operator/pkg/tasks: unit test wait init task
In this commit, we unit test wait init task on waiting for Karmada APIServer
and Karmada Control Plane components.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-12 10:42:01 +03:00
karmada-bot 201409c98c
Merge pull request #5643 from mohamedawnallah/unitTestCertDeInitTaskOperatorPkg
operator/pkg/tasks/deinit: unit test cert
2024-10-12 15:07:24 +08:00
karmada-bot 23bcebc82c
Merge pull request #5624 from mohamedawnallah/unitTestAPIServerTaskInitOperatorPKG
operator/pkg/tasks: unit test apiserver
2024-10-12 14:16:23 +08:00
Mohamed Awnallah fddfb29a85 operator/pkg/tasks/deinit: unit test component
In this commit, we unit test component deinit task in the karmada
operator package on removing component subtasks and etcd component.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-12 08:41:50 +03:00
Mohamed Awnallah 2c7aea5f9e operator/pkg/tasks: test cert deinit task
In this commit, we unit test the cert deinit task on the
clean up operations.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-12 07:23:20 +03:00
karmada-bot 0f26e6e95c
Merge pull request #5590 from mohamedawnallah/unitTestKarmadaControlPlaneOperatorPkg
operator/pkg/controlplane: unit test controlplane
2024-10-12 11:49:23 +08:00
karmada-bot 3e0516fb96
Merge pull request #5588 from mohamedawnallah/unitTestKarmadaWebhook
operator/pkg/controlplane: unit test karmada webhook
2024-10-12 11:23:23 +08: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 b52775f926
Merge pull request #5671 from chaunceyjiang/fieldoverrider_validate
feat: validate fieldOverrider operation
2024-10-12 10:10:23 +08:00
Mohamed Awnallah cbeb308cdf operator/pkg/tasks/deinit: unit test kubeconfig
In this commit, we unit test kubeconfig deinit task in the operator
package on cleaning up the secret if it has the given labels.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-11 21:11:26 +03: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
Mohamed Awnallah 11bd90ecf8 operator/pkg/workflow: test job
In this commit, we unit test the job workflow in the operator
package on initializing the running data runtime interface and
running tasks and subtasks recursively.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-11 12:57:49 +03: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 21467f88e5
Merge pull request #5665 from mohamedawnallah/unitTestKubeConfigUtilOperatorPKG
operator/pkg/util: unit test kubeconfig
2024-10-11 15:13:23 +08:00
karmada-bot 2bebd4c045
Merge pull request #5670 from RainbowMango/pr_update_line_terminators
Update file line terminators to LF
2024-10-11 15:12:22 +08:00
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
Mohamed Awnallah 95ba0cdee9 operator/pkg/util: unit test kubeconfig
In this commit, we unit test kubeconfig utility in the karmada
operator package on building client from secret reference and checking
whether the given cluster is local or remote.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
Co-authored-by: zhzhuang-zju <m17799853869@163.com>
2024-10-11 05:29:56 +03:00