Commit Graph

5951 Commits

Author SHA1 Message Date
karmada-bot d172659ff5
Merge pull request #5559 from mohamedawnallah/unitTestOperatorCertsPkg
operator/pkg/certs: unit test Certificate Manager and Karmada Store
2024-10-21 10:50:32 +08:00
karmada-bot aab8bb9c00
Merge pull request #5710 from MAVRICK-1/chore/update-trivy-version-v0.53.0
chore(hack): upgrade Trivy to v0.56.1 for consistency with CI
2024-10-21 09:26:30 +08:00
Rishi Mondal cbfdfa9e44 chore/update-trivy-version-v0.56.1
Signed-off-by: Rishi Mondal <mavrickrishi@gmail.com>
2024-10-20 10:25:53 +05:30
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
karmada-bot 517cb0d3a9
Merge pull request #5423 from chaosi-zju/secret-local
standardize the naming of karmada secrets in local up method
2024-10-19 16:36:30 +08:00
karmada-bot fdc47f8688
Merge pull request #5472 from zhzhuang-zju/dial
karmada-scheduler-estimator add the support for custom DNS suffix
2024-10-19 16:16:29 +08:00
chaosi-zju edb224d7d2 standardize the naming of karmada secrets in local up method
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-10-19 15:37:34 +08: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
karmada-bot 645fbe919b
Merge pull request #5707 from MAVRICK-1/update-karmada-components-v1.11.0
chore: update image tags for Karmada components to v1.11.1
2024-10-19 14:22: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
karmada-bot 76e01b148b
Merge pull request #5712 from seanlaii/fix-typo
Fix InterpreterOperationAll description typo
2024-10-19 12:12:29 +08:00
wei-chenglai 5b48832496 Fix InterpreterOperationAll description typo
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2024-10-18 23:10:39 -04:00
karmada-bot 21e6dcd0fc
Merge pull request #5709 from zhzhuang-zju/sbom-update
fix the error lstat /github/workspace: no such file or directory
2024-10-19 10:22: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 ffbbe067bf
Merge pull request #5708 from MAVRICK-1/update-changelog-link
update CHANGELOG.md to point to the changelog directory
2024-10-18 18:09:29 +08:00
zhzhuang-zju d41a8cdd9d fix the error lstat /github/workspace: no such file or directory
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-10-18 16:03:06 +08:00
karmada-bot 2fe8570179
Merge pull request #5705 from zhzhuang-zju/releasenote1.12.1
publish release note for v1.12.0-alpha.1
2024-10-18 15:32:29 +08:00
Rishi Mondal 8711b0a3a7 update CHANGELOG.md to point to the changelog directory
Signed-off-by: Rishi Mondal <mavrickrishi@gmail.com>
2024-10-18 12:28:29 +05:30
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
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
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