Commit Graph

3323 Commits

Author SHA1 Message Date
YASH PANDEY 6cba9fe74b Version updates
Signed-off-by: YASH PANDEY <pandeyyash7052@gmail.com>
2025-01-09 14:57:09 +05:30
RainbowMango 2f180f26cd Add ResourceBinding scheduling suspension helper functions to simplify code
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2025-01-06 17:39:59 +08:00
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
Marty Mcfly 7a85687026
feat: cluster-level resource scheduling suspend and resume capabilities (#5937)
* RB suspension: API change

Signed-off-by: Monokaix <changxuzheng@huawei.com>

* Feat: scheduler supports binging suspension

Signed-off-by: Monokaix <changxuzheng@huawei.com>

---------

Signed-off-by: Monokaix <changxuzheng@huawei.com>
2025-01-02 11:46:34 +08:00
changzhen 8c6d0a4ee7 fix flake test with GetWorksByBindingID func
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-12-31 11:15:45 +08:00
karmada-bot 492e24dd8c
Merge pull request #5742 from anujagrawal699/addedTests-pkg/util/helper/work.go
Added tests for pkg/util/helper/work.go
2024-12-31 09:53:31 +08:00
chaosi-zju 5b7df5b231 fix rebalancer auto deleted failed
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-12-28 17:52:32 +08:00
karmada-bot 337c27bb18
Merge pull request #5974 from Monokaix/decouple
decouple suspension of propagation and resourcebinding
2024-12-28 13:18:29 +08:00
Monokaix eb2a4bd051 decouple suspension of propagation and resourcebinding
Signed-off-by: Monokaix <changxuzheng@huawei.com>
2024-12-28 11:31:53 +08:00
changzhen e93da666ae fix verify license lint error
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-12-26 19:40:26 +08:00
changzhen 5bd3d0128a remove apiserver dependency in resourceinterpreter
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-12-25 15:52:04 +08:00
karmada-bot c9ca6aca6a
Merge pull request #5936 from mohamedawnallah/addressKarmadaSearchControllerFlakyTestCases
pkg/search/controllers_test: reduce the probability of flaky test cases by waiting for cache to sync
2024-12-23 09:52:25 +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
changzhen 262fcb328a fix validate panic when ResourceInterpreterWebhookConfiguration .webhooks[*].clientConfig.service.port is nil
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-12-20 15:16:38 +08:00
LavredisG 8659df84d7
Update interface.go
Signed-off-by: LavredisG <lavredisgoume@gmail.com>
2024-12-16 13:35:12 +02:00
changzhen 82fc37ea04 Fix the problem of ResourceBinding remaining when the workload is deleted in the dependencies distribution scenario
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-12-12 15:54:57 +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
Mohamed Awnallah 627b464489 pkg/search/controllers_test: wait for cache sync
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-12-11 07:06:43 +02:00
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