Commit Graph

284 Commits

Author SHA1 Message Date
zhzhuang-zju 8949f3351d Add Support for Component Priority Class Configuration in karmadactl init
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2025-02-11 20:20: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
chaosi-zju 72da42d27b standardize the naming of karmada config in karmadactl method
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2025-01-24 18:28:04 +08:00
YASH PANDEY 6cba9fe74b Version updates
Signed-off-by: YASH PANDEY <pandeyyash7052@gmail.com>
2025-01-09 14:57:09 +05:30
karmada-bot a8a01a30c2
Merge pull request #5908 from mohamedawnallah/unitUsageOfAddonConstants
cmd+hack+operator+pkg: unify addons constants
2024-12-09 10:46:14 +08: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
Mohamed Awnallah fc28676516 pkg/karmadactl/cmdinit: unit test clusterinfo
In this commit, we unit test clusterinfo on creating
bootstrap configmap and creating cluster info RBAC rules.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-12-05 09:19:33 +02:00
zhzhuang-zju b7afcaf5a2 karmadactl init: add CRDs archive verification to enhance file system robustness
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-11-27 16:47:58 +08:00
zhzhuang-zju 429f2d313e Redact sensitive information from the karmadactl init command output
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-11-26 11:15:04 +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 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
karmada-bot 37ae460f82
Merge pull request #5851 from chaosi-zju/version
Update karmada-apiserver and kube-controller-manager to v1.31.3 by default
2024-11-21 18:09:58 +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
zhzhuang-zju af90640361 minimize the RBAC permissions for the pull mode cluster
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-11-20 15:44:01 +08:00
zhzhuang-zju 26103ecdff Standardize the naming conventions for karmada system roles
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-11-19 19:06:28 +08:00
karmada-bot c69408879d
Merge pull request #5786 from mohamedawnallah/unitTestKarmadaInitCheck
pkg/karmadactl/cmdinit/karmada: unit test check
2024-11-11 14:56:49 +08:00
Mohamed Awnallah 0a56741bb6 pkg/karmadactl/cmdinit: unit test bootstraptoken
In this commit, we unit test bootstraptoken agent on tlsbootstrap
functionality by testing `AllowBootstrapTokensToPostCSRs`,
`AutoApproveKarmadaAgentBootstrapTokens`, and `AutoApproveAgentCertificateRotation`
making sure they are working as expected.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-05 16:51:08 +02:00
Mohamed Awnallah c636d16948 pkg/karmadactl: unit test check in cmdinit
In this commit, we unit test `WaitAPIServiceReady` check function
that is utilized across addons and during init operations on waiting
for a non-existent aaAPIService, not-ready aaAPIService, and finally
where aaAPIService becomes ready before the timeout.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-04 21:46:07 +02:00
karmada-bot 07c6cb4db9
Merge pull request #5306 from tiansuo114/config
Add GitHub tests for karmadactl init --config command
2024-10-29 14:41:38 +08:00
tiansuo114 7426b4144b
Add github ci test for karmadactl init --init-config
Signed-off-by: tiansuo114 <1729765480@qq.com>
2024-10-29 11:00:24 +08:00
karmada-bot 1e333650dd
Merge pull request #5626 from wulemao/karmadactl-unregister
support unregister cluster in karmada
2024-10-28 21:20:38 +08:00
wulemao f803efe492 support unregister cluster in karmada
Signed-off-by: wulemao <1194736083@qq.com>
2024-10-28 20:25:28 +08:00
tiansuo114 9b9847e3f7
Feature: karmadactl init supports deployment through configuration files
Signed-off-by: tiansuo114 <1729765480@qq.com>

fix lint

Signed-off-by: tiansuo114 <1729765480@qq.com>
2024-10-25 17:02:59 +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
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 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 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 03023103d6 Remove deprecated --bind-address and --secure-port from karmada-scheduler
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-09-20 18:10:37 +08:00
wei-chenglai a72b72ba93 Remove BindAddress & SecurePort of karmada-scheduler-estimator
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2024-09-16 00:03:38 -04:00
Lan Liang 0395765962 Update karmada-apiserve and kube-controller-manager to v1.30.4 by default.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-09-10 13:59:13 +00:00
karmada-bot 4668cf0808
Merge pull request #5321 from tiansuo114/node
Support multiple label selection ability in EtcdNodeSelectorLabels
2024-09-10 11:07:57 +08:00
tiansuo114 2c57ebae0e
Support multiple label selection ability in EtcdNodeSelectorLabels
Signed-off-by: tiansuo114 <1729765480@qq.com>

fix ci

Signed-off-by: tiansuo114 <1729765480@qq.com>

add unit test

Signed-off-by: tiansuo114 <1729765480@qq.com>

change unit test

Signed-off-by: tiansuo114 <1729765480@qq.com>

rm mapsEqual

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

1111111111111111111111

Signed-off-by: tiansuo114 <1729765480@qq.com>

Update pkg/karmadactl/cmdinit/cmdinit.go

Co-authored-by: zhzhuang-zju <m17799853869@163.com>

use metav1.ParseToLabelSelector

Signed-off-by: tiansuo114 <1729765480@qq.com>

delete useless test

Signed-off-by: tiansuo114 <1729765480@qq.com>

11

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>
2024-09-09 20:05:23 +08:00
zhzhuang-zju e2392fb07c chore: remove redundancy certificate configuration
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-09-03 20:07:23 +08:00
karmada-bot d16f0985ec
Merge pull request #5437 from liangyuanpeng/scheduler_options
Standardize the health probe and metrics arguments of scheduler.
2024-08-28 09:11:45 +08:00
Lan Liang 0fceab521a Standardize the health probe and metrics arguments of scheduler.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-08-27 12:37:21 +00:00
wei-chenglai f6d022f799 Standardize the health probe argument of karmada-controller-manager
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2024-08-27 16:29:01 +08:00
wei-chenglai c266e4b234 Standardize the health probe & metrics arguments of scheduler-estimator
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2024-08-27 11:49:42 +08:00
Michael Grosser f4df03f6e0
add karmada.io/system label to created clusterrole+bindings
Signed-off-by: Michael Grosser <michael@grosser.it>
2024-07-31 18:46:21 -07:00
karmada-bot 21b330c23c
Merge pull request #5223 from whitewindmills/agent-options
Standardize the health probe arguments
2024-07-27 22:05:18 +08:00
Michael Grosser afc1e5fc89
relabel webhooks to make it obvious they belong to karmada
Signed-off-by: Michael Grosser <michael@grosser.it>
2024-07-24 19:45:52 -07:00
whitewindmills 955b5b5862 Standardize the health probe arguments
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-07-23 10:20:48 +08:00
tiansuo114 26a178d0fe
Add cert file exist check
Signed-off-by: tiansuo114 <1729765480@qq.com>

fix ci

Signed-off-by: tiansuo114 <1729765480@qq.com>

change fmt.Println to t.Fatal

Signed-off-by: tiansuo114 <1729765480@qq.com>

Fix the issues raised in the discussion

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

add file check

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>

fix

Signed-off-by: tiansuo114 <1729765480@qq.com>
2024-07-18 13:10:38 +08:00
Lan Liang 70cb862478 Update karmada-apiserve and kube-controller-manager to v1.29.6 by default.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-07-16 14:01:19 +00:00
karmada-bot fdc29c7470
Merge pull request #5127 from guozheng-shen/feat-ca
feat: karmadactl add ca-cert-path and ca-key-path opts
2024-07-12 14:41:05 +08:00
guozheng-shen 43bb7c75ce feat: karmadactl add ca-cert-path and ca-key-path opts
Signed-off-by: guozheng-shen <179826407@qq.com>
2024-07-11 21:30:44 +08:00
whitewindmills 6158fd8af5 Expose metrics port for karmadactl installation
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-07-11 11:16:03 +08:00
zhzhuang-zju acdd2115c6 Adding TLS Certificate Authentication to gRPC
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-06-21 15:56:20 +08:00