Commit Graph

61 Commits

Author SHA1 Message Date
Joe Nathan Abellard a80be33e4a Fix issues with running multiple Karmada instances in the same namespace
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2025-03-01 17:10:17 -05:00
Joe Nathan Abellard 223fb461b0 Add support for API Server sidecar containers
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2025-02-18 04:44:09 -05:00
karmada-bot 2be704299d
Merge pull request #6079 from zhzhuang-zju/webhookurl
karmada-webhook: fix the no such host error
2025-02-10 10:25:07 +08:00
zhzhuang-zju fffd206673 karmada-webhook: fix the no such host error
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2025-02-07 11:04:57 +08:00
wei-chenglai 1e3d8c05f0 Standardize the naming of karmada config in Karmada Operator
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2025-02-05 14:04:53 +09:00
Joe Nathan Abellard 954ee76365 Add support for specifying priority class name for control plane components
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2025-01-23 20:45:03 -05:00
Mohamed Awnallah 6ae8cfd3e9 pkg/karmadactl/util: unit test apiclient
In this commit, we unit test apiclient on creating restconfig.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-12-11 08:57:27 +02:00
chaosi-zju 13c28a00b2 fix code typo errors
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-28 11:01:54 +08:00
karmada-bot 42e50b799c
Merge pull request #5675 from mohamedawnallah/unitTestUtilOperatorPKG
operator/pkg: unit test utilities
2024-10-29 09:52:38 +08:00
Mohamed Awnallah a83c26eac9 operator/pkg/certs: test certs
In this commit, we introduce unit tests for operator `certs` package.
The test cases include but not limited to:

- Test private key generation.
- Test self-signed certificate authority (CA) generation.
- Verify creation of self-signed certificate and key files within the CA.
- Include tests for utility functions, such as appending to Subject Alternative Names in SSL/TLS certificates.
- Add tests for Karmada Store operations related to certificates stored in Kubernetes Secrets:
  - Create
  - Read
  - Update
  - Load

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-19 15:47:05 +03:00
Mohamed Awnallah 49eb96b48f operator/pkg/util: unit test util
In this commit, we unit test utilities on downloader operations and
unpacking tar files.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-17 20:08:22 +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
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
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
karmada-bot 23bcebc82c
Merge pull request #5624 from mohamedawnallah/unitTestAPIServerTaskInitOperatorPKG
operator/pkg/tasks: unit test apiserver
2024-10-12 14:16:23 +08: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
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
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
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 5a4539d404 migrate wait.PollImmediate to wait.PollUntilContextTimeout.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-05-22 05:51:49 +00:00
chaosi-zju 472da38a6c cleanup: grant the correct permissions when creating a file
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-21 09:30:38 +08:00
chaosi-zju be3874a938 cleanup: replace text/template with html/template
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-17 15:37:55 +08:00
zhzhuang-zju 309c67701b bump golangci to v1.58.0
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-05-13 09:32:13 +08:00
zhao.laihe ef986a0ec4 fix: print info
Signed-off-by: zhao.laihe <zhao.laihe@neolink.com>
2024-03-01 17:21:06 +08:00
zhao.laihe 0be1a66b39 fix: update service failed when reconcile
Signed-off-by: zhao.laihe <zhao.laihe@neolink.com>
2024-02-24 19:48:56 +08:00
zhao.laihe 8f0b190d34 correct print info
Signed-off-by: zhao.laihe <zhao.laihe@neolink.com>
2024-02-21 15:04:26 +08:00
jwcesign 38b2cae7e1 cleanup: enable revive(exported rule) checking
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-01-09 09:41:47 +08:00
Zhizhen He 25a62c6c57
fix typo
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-12-17 16:12:03 +08:00
zhzhuang-zju 4916e3b9cd feat: support install karmada search with operator
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-12-05 20:46:25 +08:00
calvin 4e09f5e6b5 fixed resource version conflict when updating serivce
Signed-off-by: calvin <wen.chen@daocloud.io>
2023-11-24 17:47:42 +08:00
zhy76 adef1e5974 feat: add license and verify license for code file
Signed-off-by: zhy76 <958474674@qq.com>
2023-11-16 11:11:21 +08:00
calvin fa0884c333 karmada operator: support install karmada on remote cluster
Signed-off-by: calvin <wen.chen@daocloud.io>
2023-11-06 17:47:47 +08:00
Lan Liang 3fbd7219d1 Operator support work with crds v1.7.0
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2023-10-18 13:26:09 +00:00
wawa0210 ab1900f249 support config karmada components resources
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2023-09-15 16:48:20 +08:00
whitewindmills c8423cb237 fix spelling errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-09-04 10:22:39 +08:00
karmada-bot 9003c83fc2
Merge pull request #3953 from Vacant2333/add_rbac_task_when_karmada_operator_init
Feat: Add rbac task when karmada operator init
2023-08-30 17:27:09 +08:00
Tanggui Bian 9607b9e807 Remove the execute permission from the directory
Signed-off-by: Tanggui Bian <softwarebtg@163.com>
2023-08-24 19:24:48 +08:00
calvin 1abdba3ec8 karmada operator: install karmada metrics adapter addon
Signed-off-by: calvin <wen.chen@daocloud.io>
2023-08-22 18:11:42 +08:00
Vacant2333 6dc9487084 add rbac task when karmada operator init
Signed-off-by: Vacant2333 <rentian.zhou@daocloud.io>
2023-08-21 15:42:57 +08:00