Commit Graph

5986 Commits

Author SHA1 Message Date
karmada-bot 53c00f72f2
Merge pull request #5711 from anujagrawal699/addedTests-pkg/detector-part1
Added first part of unit tests for pkg/detector
2024-10-25 14:14:35 +08:00
karmada-bot c6c20a9e22
Merge pull request #5733 from anujagrawal699/addedTests-pkg/util/round_trippers.go-context.go-policy-go
Added tests for utility functions in the pkg/util
2024-10-24 19:19:34 +08:00
karmada-bot e204459087
Merge pull request #5519 from zhzhuang-zju/operator
add ci for karmada operator
2024-10-24 16:54:34 +08:00
zhzhuang-zju 4f2b2f0918 add operator ci
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-10-24 16:00:13 +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
karmada-bot 5e7d83629f
Merge pull request #5739 from chaosi-zju/local-up-ca
add CA data to local up generated karmada config for enhanced security
2024-10-24 15:13:33 +08:00
karmada-bot 7347f11ebb
Merge pull request #5717 from XiShanYongYe-Chang/handle-preserveResource-with-dependency
Keep preserveResourcesOnDeletion of the dependent resource consistent with that of the primary resource
2024-10-24 12:21:33 +08:00
chaosi-zju 7cbee99fab add CA data to local up generated karmada config for enhanced security
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-10-24 10:14:51 +08:00
karmada-bot 60e8e34009
Merge pull request #5720 from jabellard/external_etcd_part2
External `etcd` Support for Karmada Operator - Part 2
2024-10-24 09:21:33 +08:00
Anuj Agrawal d35b21e786 Added tests for utility functions in the pkg/util
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-23 17:38:57 +05:30
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
karmada-bot 331145f789
Merge pull request #5700 from anujagrawal699/addedTest-pkg/util/lifted/corev1printers.go-part2
Added second part of unit tests for pkg/util/lifted/corev1printers.go
2024-10-23 15:04:32 +08:00
Anuj Agrawal 012517d81e Added first part of unit tests for pkg/detector
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added first part of unit tests for pkg/detector

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-23 12:24:26 +05:30
karmada-bot 4d0181c2b9
Merge pull request #5706 from RainbowMango/pr_fix_incorrect_grade_choice
Fixes incorrect resource model selection
2024-10-23 14:52:32 +08:00
karmada-bot f19a4b5281
Merge pull request #5543 from anujagrawal699/addedTests-controllers/gracefuleviction
Added tests for graceful eviction controller
2024-10-23 10:45:32 +08:00
changzhen f63c134aa4 handle preserveResourceOnDeletion with dependencise distributor
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-10-23 10:25:31 +08:00
karmada-bot 13df63fa46
Merge pull request #5586 from B1F030/karmada-operator-rbac
minimize the rbac permissions for karmada-operator
2024-10-22 15:44:32 +08: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
karmada-bot be571fbe8e
Merge pull request #5662 from yanfeng1992/fix-search-match-resource
hasResource should return whether resource is matched not cached
2024-10-22 10:47:32 +08:00
karmada-bot 5eb6e6f88f
Merge pull request #5716 from mohamedawnallah/fixFlakyCertStoreUnitTest
operator/pkg/certs/store_test: fix flaky test `TestCertList`
2024-10-22 09:31:32 +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 6a827f60bc
Merge pull request #5685 from LivingCcj/master
add ResourceSummary deep copy in general-estimator
2024-10-21 20:27:32 +08:00
LivingCcj 3a4464aa00 add ResourceSummary deep copy in general-estimator
Signed-off-by: LivingCcj <livingccj@163.com>
2024-10-21 19:33:37 +08:00
karmada-bot aca83a7689
Merge pull request #5715 from karmada-io/dependabot/github_actions/aquasecurity/trivy-action-0.28.0
build(deps): bump aquasecurity/trivy-action from 0.27.0 to 0.28.0
2024-10-21 14:17:31 +08:00
dependabot[bot] b7b9924062
build(deps): bump aquasecurity/trivy-action from 0.27.0 to 0.28.0
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.27.0 to 0.28.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](https://github.com/aquasecurity/trivy-action/compare/0.27.0...0.28.0)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-21 05:23:47 +00: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
karmada-bot e316db3a48
Merge pull request #5481 from anujagrawal699/addedTests-pkg/controllers/cronfederatedhpa
Added tests for cronfederatedhpa controller
2024-10-21 11:03:31 +08:00
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
RainbowMango a6679ddec0 Fixes an issue where resource model grades were incorrectly matched based on resource requests. Now only grades that can provide sufficient resources will be selected.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-10-19 18:07:22 +08: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 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