Commit Graph

268 Commits

Author SHA1 Message Date
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
RainbowMango 325bab391b Bump controller-gen to v0.16.5
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-12 10:32:09 +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
zhzhuang-zju e8aa2ff651 add script to deploy karmada-operator and karmada instance
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-10-24 16:00:01 +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
B1F030 8b6d4c4fc1 minimize the rbac permissions for karmada-operator
Signed-off-by: B1F030 <646337422@qq.com>
2024-10-22 11:10:38 +08: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
Rishi Mondal 29980be10e chore: update image tags for Karmada components to v1.11.1
Signed-off-by: Rishi Mondal <mavrickrishi@gmail.com>
2024-10-19 10:28:41 +05:30
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
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 1d13634e66 operator/pkg/tasks: unit test crds
In this commit, we unit test crds on preparing, skipping,
downloading, and unpacking operations.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-18 00:32:26 +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
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