Commit Graph

5986 Commits

Author SHA1 Message Date
zhzhuang-zju 80b8146d4d publish release note for v1.12.0-alpha.1
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-10-18 14:37:48 +08:00
karmada-bot d1433e2562
Merge pull request #5583 from mohamedawnallah/unitTestEtcdOperatorPkg
operator/pkg/controlplane: unit test etcd
2024-10-18 11:56:29 +08:00
karmada-bot cfadb48084
Merge pull request #5576 from mohamedawnallah/unitTestControlPlaneOperatorPkg
operator/pkg/controlplane: unit test apiserver
2024-10-18 11:53:28 +08:00
karmada-bot 9531f0f3bb
Merge pull request #5603 from mohamedawnallah/unitTestRBACOperator
operator/pkg/karmadaresource: unit test RBAC
2024-10-18 11:49:28 +08:00
karmada-bot fc7da71575
Merge pull request #5585 from mohamedawnallah/unitTestMetricsAdapter
operator/pkg/controlplane: unit test Metrics Adapter
2024-10-18 11:24:28 +08:00
karmada-bot 12aa64e9fc
Merge pull request #5565 from mohamedawnallah/unitTestKarmadaControllerOfOperator
operator/pkg/controller/karmada: unit test Karmada controller
2024-10-18 11:21:28 +08:00
karmada-bot 1a958e2558
Merge pull request #5596 from mohamedawnallah/unitTestAPIServiceKarmadaResourceOperatorPkg
operator/pkg/karmadaresource/apiservice: unit test apiservice
2024-10-18 10:20:28 +08:00
karmada-bot ee1e751327
Merge pull request #5587 from mohamedawnallah/unitTestKarmadaSearchControlPlaneOperatorPkg
operator/pkg/controlplane: unit test karmada search
2024-10-18 10:05:28 +08:00
Mohamed Awnallah 06a45c3ad4 operator/pkg/controller: test karmada controller
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-18 03:48:26 +03:00
Mohamed Awnallah 1474463e81 operator/pkg: test apiservice
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-17 19:28:05 +03:00
Mohamed Awnallah 6a83fe478c operator/pkg/tasks/init: test rbac
In this commit, we unit test rbac in the karmada init task
operator package by checking that cluster roles and their associated
cluster role bindings are created as expected.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-17 18:11:01 +03:00
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 f74dbb0519 operator/pkg/karmadaresource: test RBAC
In this commit, we add unit tests for the RBAC in the karamada resource
operator pkg making sure Karmada Resource View Clusterrole and Karmada
Resource Edit Clusterrole are working as expected.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-16 20:48:45 +03:00
Mohamed Awnallah a7dd3f887c operator/pkg/controlplane: test karmada search
In this commit, we include unit tests for karmada search in the
operator control plane package to make sure installing karmada search
and its associated service are working as expected.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-16 20:41:23 +03:00
Mohamed Awnallah f9d9b098c1 operator/pkg/controlplane: test metricsadapter
In this commit, we add unit tests for the metrics adapter controlplane pkg
of the operator making sure that installing Karmada Metrics Adapter Deployment
works as expect and its associated service.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-16 20:40:40 +03:00
Mohamed Awnallah 4bec426855 operator/pkg/controlplane: test etcd
In this commit, we include unit test cases for the etcd controlplane
pkg of the operator making sure that installing Karmada Etcd Statefulset
works as expected and its associated Etcd client/peer services.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-16 20:39:54 +03:00
Mohamed Awnallah 255b0b859f operator/pkg/controlplane: test apiserver
In this commit, we introduce unit tests for both control plane
apiserver and aggregated apiserver for the operator.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-16 20:38:32 +03: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
Anuj Agrawal 35b92e4c1b Added second part of unit tests for pkg/util/lifted/corev1printers.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-16 20:53:53 +05:30
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
huangyanfeng e7b6513db0 HasResource should return whether resource is registered not cached
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2024-10-14 17:21:25 +08:00
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