Commit Graph

251 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
zhzhuang-zju df7f007f71 operator: fix the issue that the default values of Karmada are not correctly applied
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2025-02-25 19:48:25 +08: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
chaosi-zju c7009b2d64 expose metrics of karmada-metrics-adapter
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2025-01-02 16:47:52 +08:00
karmada-bot 36051f61de
Merge pull request #5976 from jabellard/external-etcd-pki-fix
Fix ETCD PKI Provisioning Issue in Karmada Operator
2024-12-28 11:45:29 +08:00
changzhen e93da666ae fix verify license lint error
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-12-26 19:40:26 +08:00
Joe Nathan Abellard 5a7f917bce Only genrate ETCD PKI for local ETCD setup
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-12-25 16:12:33 -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
Mohamed Awnallah 6144ea5a9b cmd+hack+operator+pkg: unify addons constants
In this commit we unify the usage of addon names i.e
`karmada-descheduler`, `karmada-scheduler-estimator`, `karmada-search`,
and `karmada-metrics-adapter` across the codebase.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
Co-authored-by: Hongcai Ren <renhongcai@huawei.com>
2024-12-05 18:45:44 +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
zhzhuang-zju 63590cbeee karmada-operator: add CRDs archive verification to enhance file system robustness
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-11-27 15:07:56 +08:00
zhzhuang-zju 3c91c7df8f replace csrapproving by agentcsrapproving
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-11-25 17:01:03 +08:00
karmada-bot 4dbcfaf9b6
Merge pull request #5842 from jabellard/external_ca_cert
Support Custom API Server CA Certificate for Karmada Instance in Operator
2024-11-22 16:01:59 +08:00
karmada-bot 2f1fe6e3f3
Merge pull request #5854 from chaosi-zju/etcd-version
etcd: update default version to 3.5.16-0
2024-11-22 14:11:59 +08:00
chaosi-zju a11784e1f2 etcd: update version to 3.5.16-0
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-21 16:59:51 +08:00
chaosi-zju a9321809d1 update karmada-apiserver and kube-controller-manager to v1.31.3 by default.
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-21 15:19:25 +08:00
Joe Nathan Abellard 3a09ac92b4 Address comments
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-11-20 07:58:29 -05:00
Joe Nathan Abellard 4ff99ebbd9 Address comments
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-11-20 07:41:31 -05:00
Joe Nathan Abellard 620638d0f4 Fix lint errors
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-11-19 19:57:14 -05:00
Joe Nathan Abellard 91322e2f5f Add support for custom API Server CA certificate
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-11-19 19:45:04 -05:00
karmada-bot 176db171e0
Merge pull request #5814 from chaosi-zju/validate
refactor operator module validation logic for Karmada objects
2024-11-18 17:41:56 +08:00
chaosi-zju 8cae64fd6e refactor operator module validation logic for Karmada objects
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-18 10:31:04 +08:00
RainbowMango c2de90bb5e Bump Kubernetes dependencies to v1.31.2
Bump controller-runtime to v0.19.1

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-12 17:52:36 +08:00
chaosi-zju b605d9d637 ensure controller names are unique when emitting metrics
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-11 12:05:12 +08:00
karmada-bot 01b8312381
Merge pull request #5775 from jabellard/api_server_service_info2
Add API Server Service Information to `KarmadaStatus`
2024-11-04 09:57:42 +08:00
karmada-bot 3ccd0fe801
Merge pull request #5773 from chaosi-zju/local-up
enable LoadBalancer type karmada-apiserver service in operator
2024-11-04 09:18:43 +08:00
Joe Nathan Abellard 325e3bdaea Add API Server Service Information to KarmadaStatus
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-11-02 10:41:22 -04:00
chaosi-zju 7aae08fb42 enable LoadBalancer type karmada-apiserver service in operator
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-02 16:30:51 +08:00
RainbowMango a644477266 Restrict supported service types of Karamda APIServer provisioned by karmada-operator.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-01 17:39:30 +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
karmada-bot ff6075c801
Merge pull request #5740 from husnialhamdani/operator-file-naming
fix operator file naming
2024-10-28 16:51:38 +08:00
Husni Alhamdani 655aa5594e fix operator file naming
Signed-off-by: Husni Alhamdani <dhanielluis@gmail.com>
2024-10-28 16:00:26 +08:00
karmada-bot b4cd68aaa7
Merge pull request #5704 from mohamedawnallah/unitTestCRDInitTask
operator/pkg/tasks/init: unit test crds
2024-10-25 17:56:34 +08:00
Joe Nathan Abellard 54427360c8 Onwards!
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Onwards!

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

Onwards!

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

Onwards!

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

Onwards!

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

Onwards!

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

Onwards!

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-10-23 07:10:57 -04:00
Mohamed Awnallah 6c68781889 operator/pkg/certs/store_test: fix flaky test
In this commit, we fix flaky test in `store_test.go` by using
`GetCert` to retrieve secrets instead of unreliable `CertList`
indexing due to non-guarnteed map order.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-21 16:29:26 +03:00
karmada-bot a3005d770b
Merge pull request #5636 from mohamedawnallah/unitTestRBACInitTaskOperatorPkg
operator/pkg/tasks/init: unit test rbac
2024-10-21 12:04:31 +08:00
karmada-bot 98b600d7d1
Merge pull request #5625 from mohamedawnallah/unitTestCertTaskInitOperatorPkg
operator/pkg/tasks/init: unit test cert
2024-10-21 11:27:31 +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
karmada-bot 31bc0224f2
Merge pull request #5699 from jabellard/external_etcd_3
External `etcd` Support for Karmada Operator - Part 1
2024-10-19 19:27:29 +08:00
Joe Nathan Abellard b8de9678e2 Onwards!
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>

Onwards!

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

Onwards!

Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-10-19 06:30:32 -04:00
Mohamed Awnallah 33b75f7b08 operator/pkg: unit test cert tasks
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-19 12:46:28 +03:00
karmada-bot 4294e60704
Merge pull request #5561 from mohamedawnallah/validateKeyAndHandleErrors
operator/pkg/certs: validate X509 Cert key types and improve error handling
2024-10-19 15:19:29 +08:00
Mohamed Awnallah ad7a70b008 operator/pkg/certs: validate key types and val err
In this commit, we enhance the `GeneratePrivateKey` and `ParsePrivateKeyPEM` functions:

- Added validation for unsupported key types and provided a more descriptive error message.
This function supports ECDSA (using P-256) and RSA (with a key size of 3072 bits) algorithms.
It returns an error for unsupported key types.
- Improved error handling to include the type of the unsupported key format in the error message.
This function now provides more informative feedback when the private key format is neither RSA nor ECDSA.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-18 15:48:34 +03: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