Commit Graph

3304 Commits

Author SHA1 Message Date
karmada-bot ff7dc4af44
Merge pull request #5832 from anujagrawal699/addedTests-pkg/resourceinterpreter/customized/webhook/configmanager
Added unit tests for resourceinterpreter webhook configmanager
2024-12-09 20:05:14 +08: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
karmada-bot acce8fd5d8
Merge pull request #5772 from anujagrawal699/addedTests-pkg/util/lifted/scheduler/cache/node_tree_test.go
Added unit tests for the scheduler's node tree functionality
2024-12-07 19:43:12 +08:00
Anuj Agrawal ccea4d22f5 Added unit tests for resourceinterpreter webhook configmanager
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for resourceinterpreter webhook configmanager

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for resourceinterpreter webhook configmanager

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-12-06 16:16:51 +05:30
Anuj Agrawal 55707d8a4f Added unit tests for the scheduler's node tree functionality
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for the scheduler's node tree functionality

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for the scheduler's node tree functionality

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-12-06 15:52:09 +05:30
karmada-bot f72a312d14
Merge pull request #5898 from anujagrawal699/addedTests-pkg/estimator/server/replica/replica.go
Added unit tests for the replica package in the estimator server
2024-12-06 18:11:10 +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
karmada-bot a655c45f6f
Merge pull request #5864 from anujagrawal699/addedTests-pkg/resourceinterpreter/customized/declarative/configmanager/accessor.go
Added unit tests for custom resource interpreter's configuration manager
2024-12-05 20:05:10 +08: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 b3dad9bdc5
Merge pull request #5819 from anujagrawal699/addedTest-pkg/util/lifted/lua
Added unit tests for safe lua lifted libraries
2024-12-04 09:58:08 +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
Anuj Agrawal 47528b417e refactor: introduce DefaultHistoryLimit constant for CronFederatedHPA
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-12-02 18:59:44 +05:30
karmada-bot 064ccf1140
Merge pull request #5768 from anujagrawal699/addedTests-pkg/helper/status.go-cronfederatedhpa.go
Added unit tests for status and cronfederatedhpa helper utilities
2024-12-02 17:38:07 +08:00
karmada-bot 189acaf5a9
Merge pull request #5871 from mohamedawnallah/unitTestJoinKarmadactl
pkg/karmadactl: unit test join
2024-12-02 17:16:08 +08:00
Anuj Agrawal c25263c19b Added unit tests for the replica package in the estimator server
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for the replica package in the estimator server

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-12-02 14:42:50 +05:30
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
karmada-bot cdd46f5783
Merge pull request #5850 from anujagrawal699/addedTests-pkg/resourceinterpreter/customized/webhook/request/resourceinterpretercontext.go
Added unit tests for interpretation context handling
2024-11-30 15:47:06 +08:00
RainbowMango a8e965321e Disable cluster failover by default which should be explicitly enabled by administrators after a fully evaluation.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-30 09:59:35 +08:00
RainbowMango 58c3765684 Add stateful application failover status injection feature gate
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-29 16:27:36 +08:00
karmada-bot 54be414d9f
Merge pull request #5893 from XiShanYongYe-Chang/inject-preservedLabelState
Inject preservedLabelState to the failover to clusters
2024-11-29 12:25:05 +08:00
changzhen 1cdc646cef inject preservedLabelState to the failover to clusters
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-29 11:30:51 +08:00
changzhen 3c0c9b8a41 add ut for parseJSONValue function to cover the JSONPath main parse ability
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-29 09:37:26 +08: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
karmada-bot 6f4d69cf8b
Merge pull request #5875 from mohamedawnallah/addressSearchControllerFlakeTest
pkg/search/controllers_test: address flaky test
2024-11-28 19:23:03 +08:00
karmada-bot c8b033d47d
Merge pull request #5889 from mszacillo/cleanup-work-immediately
Cleanup works from cluster if purgemode is immediately
2024-11-28 19:17:04 +08:00
mszacillo 082fe7cff9 Cleanup works from cluster if purgemode is immediately
Signed-off-by: mszacillo <mszacillo@bloomberg.net>
2024-11-27 23:37:01 -05:00
karmada-bot 1b8d09c2f8
Merge pull request #5887 from XiShanYongYe-Chang/build-PreservedLabelState
Build PreservedLabelState when triggering evition in RB/CRB application controller
2024-11-28 12:21:04 +08:00
changzhen 46dbf076e9 build PreservedLabelState when triggering evition
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-28 11:25:42 +08:00
chaosi-zju 13c28a00b2 fix code typo errors
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-28 11:01:54 +08:00
Mohamed Awnallah fcfbf700cd pkg/search/controllers_test: address flake test
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-27 16:26: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 f78e7e2a3d
Merge pull request #5703 from zhzhuang-zju/security
karmada-operator: add CRDs archive verification to enhance file system robustness
2024-11-27 16:28:04 +08:00
zhzhuang-zju 63590cbeee karmada-operator: add CRDs archive verification to enhance file system robustness
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-11-27 15:07:56 +08:00
karmada-bot f1680610dc
Merge pull request #5881 from mszacillo/set-purge-mode
Failover controllers now build eviction tasks for purgemode immediately
2024-11-27 11:13:02 +08:00
mszacillo a393653723 Failover controllers now build eviction tasks for purgemode immediately
Signed-off-by: mszacillo <mszacillo@bloomberg.net>
2024-11-26 11:39:09 -05:00
RainbowMango 87ef7d0f44 Add StatePreservation filed to PropagationPolicy API
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-26 21:08:43 +08:00
Anuj Agrawal 1575e6ae60 Added unit tests for interpretation context handling
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for interpretation context handling

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for interpretation context handling

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-26 18:25:13 +05:30
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 8f4a03bd74
Merge pull request #5861 from seanlaii/deprecated
Enable the deprecation check which was disabled for version upgrade
2024-11-26 11:58:02 +08:00
karmada-bot 7fc69359b0
Merge pull request #5865 from ctripcloud/rb-status-on-create
let rb status controller onCreate predicate return true
2024-11-26 11:36: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
wei-chenglai e05628bb37 Enable deprecation check which was disabled for version upgrade
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2024-11-25 20:32:50 -05:00
zach593 302d545909 let rb status controller onCreate predicate return true
Signed-off-by: zach593 <zach_li@outlook.com>
2024-11-25 22:04:32 +08:00
karmada-bot 72cfef5151
Merge pull request #5879 from XiShanYongYe-Chang/taint-manager-purgemode
Update taint-manager to config eviction task with purgeMode
2024-11-25 19:59:01 +08:00
changzhen 25867c45ba update taint-manager to config eviction task with purgeMode
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-25 17:18:49 +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
karmada-bot 88c3e4487f
Merge pull request #5863 from CharlesQQ/set-dependenciesdistributor-rb-maxconcurrentreconciles
feat(dependenciesdistributor):  remove dependenciesdistributor concurrentreconciles
2024-11-23 15:12:59 +08:00
karmada-bot 2c51aca8a0
Merge pull request #5825 from zhzhuang-zju/csrapproving
add agentcsrapproving controller to auto approve agent csr
2024-11-23 14:36:59 +08: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
Anuj Agrawal 8d0e9a7738 Added unit tests for custom resource interpreter's configuration manager
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-22 21:11:26 +05:30
chang.qiangqiang fd9cd89e42 feat(dependenciesdistributor): set dependenciesdistributor rb maxconcurrentreconciles same as concurrent-resourcebinding-syncs
Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com>
2024-11-22 19:53:24 +08:00
zhzhuang-zju 103346111b add agentcsrapproving controller to auto approve agent csr
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-11-22 18:21:06 +08:00
karmada-bot 8691287429
Merge pull request #5856 from XiShanYongYe-Chang/flake-TestUpdateClusterEventHandler
fix flake test of TestUpdateClusterEventHandler
2024-11-22 16:28:59 +08:00
changzhen 7da64235a1 add group/values for resources
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-22 14:35:08 +08:00
karmada-bot 2f5dc4f0c8
Merge pull request #5691 from LavredisG/patch-3
Update types.go
2024-11-22 14:14: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
changzhen 7f7879dfd3 fix flake test of TestUpdateClusterEventHandler
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-22 12:00:56 +08:00
LavredisG 6d2ae6b2e6 Update cluster/types.go and cluster/v1alpha1/types.go
Signed-off-by: LavredisG <lavredisgoume@gmail.com>
2024-11-22 11:56:30 +08:00
karmada-bot 079d0ab7a9
Merge pull request #5846 from XiShanYongYe-Chang/adjust-with-readinessCheck
Wait for search multiClusterCache ReadinessCheck success
2024-11-22 09:46:58 +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
changzhen 9367ca9352 add ServerRunOptions in the search options
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-21 21:28:58 +08:00
changzhen 41dccd7d18 wait for search multiClusterCache ReadinessCheck to be ready
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-21 21:19:03 +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
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
RainbowMango 02861c5ca0 AsyncWorker adopt typed rate limiter
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-21 12:15:00 +08:00
karmada-bot 2c82055c4c
Merge pull request #5793 from zhzhuang-zju/register
minimize the RBAC permissions for the pull mode cluster
2024-11-20 17:22:56 +08:00
karmada-bot f6056f5255
Merge pull request #5838 from anujagrawal699/addedTests-pkg/resourceinterpreter/customized/webhook/customized.go
Added unit tests for the CustomizedInterpreter
2024-11-20 17:13:57 +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
Anuj Agrawal c2bc07bdbb Added unit tests for the CustomizedInterpreter
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for the CustomizedInterpreter

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-20 10:47:07 +05:30
LavredisG ff92a84a9e Update group_clusters.go
Signed-off-by: LavredisG <lavredisgoume@gmail.com>
2024-11-20 00:34:29 +00: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
karmada-bot 6795dba9d1
Merge pull request #5809 from CharlesQQ/introduce-flag-dependencies-distributor
feat(dependenciesdistributor):  introduce --concurrent-dependent-resource-syncs flag
2024-11-19 21:02:56 +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 a53c8bc5ef
Merge pull request #5779 from ctripcloud/work-index
Add index for work
2024-11-19 12:41:56 +08:00
karmada-bot e0d77eb330
Merge pull request #5826 from RainbowMango/pr_update_purge_mode
Update application failover purge mode comments
2024-11-19 11:50:57 +08:00
zach593 e2827b1b2e Add index for Work to speed up the processing of resource binding related controllers
Signed-off-by: zach593 <zach_li@outlook.com>
2024-11-19 11:48:04 +08:00
karmada-bot 993fa26c49
Merge pull request #5828 from anujagrawal699/addedTests-pkg/resourceinterpreter/default/native/reflectstatus.go
Added unit tests for reflect status interpreter
2024-11-18 17:00:55 +08:00
karmada-bot 09ceced40b
Merge pull request #5822 from anujagrawal699/addedTests-pkg/estimator/client/general.go
Added unit tests for general estimator package
2024-11-18 15:09:55 +08:00
Anuj Agrawal 59f266cd0c Added unit tests for pkg/resourceinterpreter/default/native/reflectstatus.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-17 20:52:11 +05:30
karmada-bot 35a82371b2
Merge pull request #5821 from XiShanYongYe-Chang/update-GracefulEvictCluster-to-set-purgemode
Support PurgeMode setting in evection tasks
2024-11-16 16:27:53 +08:00
RainbowMango d0497d41ce Update application failover purge mode comments
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-16 15:32:28 +08:00
Anuj Agrawal 310e4f989b Added unit tests for status and cronfederatedhpa helper utilities
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for status and cronfederatedhpa helper utilities

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for status and cronfederatedhpa helper utilities

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for status and cronfederatedhpa helper utilities

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-16 12:37:10 +05:30
Anuj Agrawal 1cd78d6258 Added unit tests for general estimator package
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-15 21:54:20 +05:30
karmada-bot 3acc14c0f0
Merge pull request #5810 from mohamedawnallah/unitTestKarmadaSearchController
pkg/search: unit test controller
2024-11-15 17:37:53 +08:00
karmada-bot e7fd4eb847
Merge pull request #5493 from anujagrawal699/addedTests-pkg/controllers/deploymentreplicassyncer
Added tests for controllers/deploymentreplicassyncer
2024-11-15 14:38:53 +08:00
Anuj Agrawal 455cb3928b Added tests for controllers/deploymentreplicassyncer
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for controllers/deploymentreplicassyncer

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for controllers/deploymentreplicassyncer

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for controllers/deploymentreplicassyncer

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for controllers/deploymentreplicassyncer

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for controllers/deploymentreplicassyncer

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-15 11:04:53 +05:30
changzhen db7982e9a9 update GracefulEvictCluster() to set PurgeMode during eviction process
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-15 12:02:17 +08:00
karmada-bot 35b7e8f120
Merge pull request #5816 from mszacillo/purgemode-api
feat(stateful failover support) Introduce PurgeMode to GracefulEvictionTask in ResourceBinding
2024-11-15 09:50:52 +08:00
karmada-bot 0d7d2f92d2
Merge pull request #5807 from RainbowMango/pr_bump_k8s_v1312
Bump Kubernetes dependencies from v1.30.2 to v1.31.2
2024-11-15 09:20:52 +08:00