Commit Graph

712 Commits

Author SHA1 Message Date
zhzhuang-zju c1661cd33a Add Support for Component Priority Class Configuration in karmadactl addon
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2025-02-19 10:46:34 +08:00
acejilam b354b9d2b2 fix: when contenxt fails to run when it contains quotes
Signed-off-by: acejilam <acejilam@gmail.com>
2025-02-17 14:43:50 +08:00
karmada-bot 80d3d9e007
Merge pull request #6081 from zhzhuang-zju/unjoin
Restrict the cluster sync mode for the unjoin and unregister command
2025-02-14 11:53:10 +08:00
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
zhzhuang-zju f751f9fe0d Restrict the cluster sync mode for the unjoin and unregister command
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2025-02-06 10:28:08 +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
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 6e3316fb5c
Merge pull request #5862 from zhzhuang-zju/rmfile
remove the unnecessary file localization steps when karmadactl register
2024-12-20 17:45:22 +08:00
zhzhuang-zju 623a4f916c remove the unnecessary file localization steps when karmadactl register
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-12-20 15:59:49 +08: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
karmada-bot f0e060d73e
Merge pull request #5876 from tiansuo114/ps_completion
add shell completion code for fish
2024-12-09 11:22:13 +08:00
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
Mohamed Awnallah 4e5237449b pkg/karmadactl: unit test unjoin
In this commit, we unit test unjoining cluster by
validating the unjoin cluster operation on arguments passed and
by verifying the deletion of all resources on the unjoining cluster
in case of cluster kubeconfig passed.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-12-04 20:30:03 +02:00
karmada-bot 616a95e0d7
Merge pull request #5754 from mohamedawnallah/unitTestInstallAddon
pkg/karmadactl/addons: unit test install addons
2024-12-04 17:17:09 +08:00
karmada-bot 1202cc7b80
Merge pull request #5829 from mohamedawnallah/unitTestCordonKaramdactl
pkg/karmadactl: unit test cordon
2024-12-04 16:43:09 +08:00
tiansuo114 ba2a0732fe
add shell completion code for fish shell
Signed-off-by: tiansuo114 <zhaoyi_114@outlook.com>

11

Signed-off-by: tiansuo114 <zhaoyi_114@outlook.com>
2024-12-04 10:55:55 +08:00
karmada-bot eea14cb353
Merge pull request #5895 from mohamedawnallah/unitTestPromoteKarmadactl
pkg/karmadactl: unit test promote
2024-12-03 14:17:08 +08:00
Mohamed Awnallah 6af9994ca7 pkg/karmadactl: unit test promote
In this commit, we unti test promoting a namespace-scoped or
cluster-scoped resource in a legacy clsuter and validating the promote
options on karmadactl command.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-12-03 05:27:09 +02:00
karmada-bot 189acaf5a9
Merge pull request #5871 from mohamedawnallah/unitTestJoinKarmadactl
pkg/karmadactl: unit test join
2024-12-02 17:16:08 +08:00
Mohamed Awnallah d699f1594d pkg/karmadactl: unit test describe
In this commit, we unit test describe command on karmadactl
by mainly validating the describe options.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-12-02 04:56:19 +02:00
Mohamed Awnallah 5618eb1dde pkg/karmadactl: unit test join
In this commit, we unit test the process of joining a cluster
to the Karmada control plane. The tests validate the arguments
passed to the join cluster operation and ensure the creation of
the new cluster runtime object. Additionally, we verify that the
necessary access secrets for the new cluster in push mode are correctly
generated in the Karmada control plane.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-28 20:25:41 +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
karmada-bot 5c3594f703
Merge pull request #5872 from mohamedawnallah/unitTestLogsKarmadactl
pkg/karmadactl: unit test logs
2024-11-26 16:57:02 +08:00
karmada-bot 6ceb3a9a19
Merge pull request #5714 from zhzhuang-zju/inittoken
Redact sensitive information from the karmadactl init command output
2024-11-26 12:11:02 +08:00
karmada-bot ccdf485204
Merge pull request #5873 from mohamedawnallah/unitTestExecKarmadactl
pkg/karmadactl: unit test exec
2024-11-26 11:23:01 +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
Mohamed Awnallah 543a23dbd0 pkg/karmadactl: unit test logs
In this commit, we unit test logs on completion for pods/containers,
selectors, and member factory builder.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-23 16:49:58 +02:00
Mohamed Awnallah dc0279ab48 pkg/karmadactl: unit test exec
In this commit, we unit test exec on validating the execute options
on control plane and member clusters.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-23 00:51:07 +02: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
Mohamed Awnallah bdb9fb8f46 pkg/karmadactl: unit test cordon
In this commit, we unit test cordon on karmadactl client
making sure the cordon/uncordon working as expected on a given cluster.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-21 21:52:52 +02: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
karmada-bot 1e26af3d8f
Merge pull request #5840 from KhalilSantana/master
Fix: karmada-metrics-adapter use the correct certificate when deploye…
2024-11-21 16:45:58 +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
Khalil Santana a259d51cfa
Fix: karmada-metrics-adapter use the correct certificate when deployed via karmadactl
Signed-off-by: Khalil Santana <khalil@ksantana.net>
2024-11-19 18:28:15 -03: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
RainbowMango fc1df776dc Adopt controller-runtime braking change: TypedReconciler
Reference PR2799
Adopt Kubernetes#125483 introduced ReadinessCheck
Adopt Kubernetes breaking change: EffectiveVersion
Reference PR: 122891

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-12 17:52:46 +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
karmada-bot 0cc294f998
Merge pull request #5759 from mohamedawnallah/unitTestTLSBootstrapAgent
pkg/karmadactl/cmdinit: unit test bootstraptoken
2024-11-07 09:56:46 +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 91c4f92702 pkg/karmadactl/addons: unit test karmada search
In this commit, we unit test karmada search on status operation.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-05 15:53:25 +02:00
karmada-bot ac589d6921
Merge pull request #5765 from mohamedawnallah/unitTestDeschedulerAddon
pkg/karmadactl/addons: unit test descheduler
2024-11-05 09:41:43 +08: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 6f2f3ebb22
Merge pull request #4451 from zhzhuang-zju/unjoin
Enhanced forced deletion on karmadactl unjoin
2024-11-04 11:15:43 +08:00