Commit Graph

210 Commits

Author SHA1 Message Date
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
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 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
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
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 21467f88e5
Merge pull request #5665 from mohamedawnallah/unitTestKubeConfigUtilOperatorPKG
operator/pkg/util: unit test kubeconfig
2024-10-11 15:13:23 +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
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
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
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 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 4f7dc2c409
Merge pull request #5605 from mohamedawnallah/unitTestWebhookConfigurationKarmadaOperator
operator/pkg/karmadaresource: unit test `ValidatingWebhookConfiguration` and `MutatingWebhookConfiguration`
2024-09-26 11:22:10 +08:00
karmada-bot 53c4697d6f
Merge pull request #5607 from mohamedawnallah/unitTestSchemeKarmadaOperator
operator/pkg/scheme: unit test scheme
2024-09-26 09:58:09 +08:00
Mohamed Awnallah 43a933ca52 operator/pkg: test scheme
In this commit, we unit test the init scheme functionality of the operator
by checking that both k8s core scheme and operator v1alpha1 scheme are added.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-25 22:54:16 +03:00
Mohamed Awnallah b020df1d2c operator/pkg: test webhook configurations
In this commit, we introduce unit tests for mutating and validating webhook
configurations to make sure they are working as expected.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-25 17:46:56 +03:00
karmada-bot 5e36f170e5
Merge pull request #5593 from mohamedawnallah/updateOperatorTagInstallationDocs
operator/README.md: redirect users to the latest `karmada-operator` released tag
2024-09-25 10:55:09 +08:00
karmada-bot 5f7fc4fe8e
Merge pull request #5572 from chaosi-zju/operator-rbac
`karmada-operator`: Grand proxy permission to system:admin
2024-09-24 16:55:08 +08:00
chaosi-zju 25357ee5b4 authorize system:admin to proxy member clusters during installation
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-09-24 11:47:18 +08:00
Mohamed Awnallah 5d806be8b8 operator: redirect users to latest operator tag
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-23 15:23:32 +03: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
Mohamed Awnallah 22221c4cca operator/pkg/controlplane: test controlplane
In this commit, we add unit tests for Kube Controller Manager,
Karmada Controller Manager, Karmada Scheduler, and Karmada Descheduler
components.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-23 09:26:16 +03:00
Mohamed Awnallah 92963065ff operator/pkg/controlplane: test karmada webhook
In this commit, we include unit tests for karmada webhook in the operator
controlplane package making sure that installing karmada webhook and its associated
service are working as expected.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-22 12:50:21 +03:00
chaosi-zju 6edb9cee1e Remove deprecated --bind-address and --secure-port from karmada-descheduler
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-09-21 10:59:24 +08:00
chaosi-zju 03023103d6 Remove deprecated --bind-address and --secure-port from karmada-scheduler
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-09-20 18:10:37 +08:00
Mohamed Awnallah 89794f167b operator/pkg/certs: fix null ptr deref in altnames
In this commit, we fix th null pointer dereference issue
that happens in altnames mutators for both Karmada APIServer
and EtcdServer when accessing the `Components` field on
`AltNamesMutatorConfig` struct.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-16 11:39:55 +03:00
Joe Nathan Abellard 24d9e12e5c Set Karmada Cert Secret Used For Configurating mTLS for Scheduler & Descheduler Components
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-09-13 16:14:31 -04:00
karmada-bot 4dfff39d56
Merge pull request #5509 from jabellard/volumes_bindings_api_server
Support to Specify Extra Volumes and Volume Mounts for Karmada API Server Component
2024-09-12 20:34:58 +08:00
Joe Nathan Abellard c45b817e74 Initial structure
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Initial structure

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

Update api

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

Update api

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-09-12 07:41:13 -04:00
Lan Liang 0395765962 Update karmada-apiserve and kube-controller-manager to v1.30.4 by default.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-09-10 13:59:13 +00:00
zhzhuang-zju e2392fb07c chore: remove redundancy certificate configuration
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-09-03 20:07:23 +08:00
chaosi-zju aef704732e Expose metrics port for operator installation #5428
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-08-30 11:51:55 +08:00
karmada-bot d16f0985ec
Merge pull request #5437 from liangyuanpeng/scheduler_options
Standardize the health probe and metrics arguments of scheduler.
2024-08-28 09:11:45 +08:00
Lan Liang 0fceab521a Standardize the health probe and metrics arguments of scheduler.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-08-27 12:37:21 +00:00
karmada-bot 9a678b65f0
Merge pull request #5290 from seanlaii/controller-manager-options
Standardize the health probe argument of karmada-controller-manager
2024-08-27 18:37:45 +08:00
wei-chenglai f6d022f799 Standardize the health probe argument of karmada-controller-manager
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2024-08-27 16:29:01 +08:00
whitewindmills d9ecf2a9ca Standardize the health probe and metrics arguments of descheduler
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-08-27 14:32:00 +08:00
Anuj Agrawal ed82127cbc Added tests for operator/pkg/controller/context
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-24 23:10:35 +05:30
karmada-bot 04c384444f
Merge pull request #5185 from jabellard/custom_crd_url2
Custom CRD Download Strategy Support for Karmada Operator
2024-08-09 11:57:29 +08:00