Commit Graph

685 Commits

Author SHA1 Message Date
zach593 707e4422c2 add work mutating in ctrlutil.CreateOrUpdateWork()
Signed-off-by: zach593 <zach_li@outlook.com>
2025-02-24 13:56:53 +08:00
zach593 ffefe654ae fixed some UTs did not pass apiversion and kind when generating unstructured.Unstructured
Signed-off-by: zach593 <zach_li@outlook.com>
2025-02-19 20:39:55 +08:00
chang.qiangqiang 58887bc078 fix(cluster): remove related metrics label after cluster is deleted
Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com>
2025-02-14 10:17:34 +08:00
karmada-bot d24b2b9d08
Merge pull request #6061 from chaosi-zju/ensureWork
enhance ensureWork to continue processing clusters after individual failures
2025-01-24 11:50:52 +08:00
chaosi-zju af610cc58e enhance ensureWork to continue processing clusters after individual failures
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2025-01-23 18:07:27 +08:00
Monokaix cf46939019 fix pp suspension mistakenly override scheduling suspension
Signed-off-by: Monokaix <changxuzheng@huawei.com>
2025-01-18 16:57:30 +08:00
zach593 ce1ca9912f fix deep equal check failure in CreateOrUpdateWork(), by replace the marshaler
Signed-off-by: zach593 <zach_li@outlook.com>
2025-01-10 19:53:46 +08:00
zach593 807153fdff move CreateOrUpdateWork() and related functions to controllers/ctrlutil
Signed-off-by: zach593 <zach_li@outlook.com>
2025-01-10 11:34:58 +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
Monokaix eb2a4bd051 decouple suspension of propagation and resourcebinding
Signed-off-by: Monokaix <changxuzheng@huawei.com>
2024-12-28 11:31:53 +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
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
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
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
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
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
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 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
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 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
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
changzhen 41ba3c769d cancel concurrent test for SetupWithManager
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-11 19:57:50 +08:00
chaosi-zju b605d9d637 ensure controller names are unique when emitting metrics
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-11 12:05:12 +08:00
chang.qiangqiang 2daa150fd6 fix(status): set log to level 5
Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com>
2024-11-06 16:28:42 +08:00
zach593 0e64e7ed05 fix crb_status_controller ut is referencing namespaced objects
Signed-off-by: zach593 <zach_li@outlook.com>
2024-11-03 17:34:28 +08:00
Amir Alavi 1a7409d815
chore: unify karmada labels/annotations usage in execution controller and test
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-10-26 14:06:04 -04: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
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
Amir Alavi 68c0104bc4
remove labels and annotation from resources
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-10-14 22:49:59 -04:00
Amir Alavi 866959a072
implement preserveResourcesOnDeletion to support migration rollback
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-10-14 20:36:53 -04:00
Amir Alavi dbed85441a
skip interpret health of resources without a hook
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-10-05 11:09:52 -04: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
karmada-bot 58612d3624
Merge pull request #5606 from anujagrawal699/addedTests-controllers/workloadrebalancer
Improved test coverage for workloadrebalancer controller
2024-09-27 15:12:10 +08:00
Anuj Agrawal 9bb8b5b0df Improved test coverage for workloadrebalancer controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Changed the resource to clusterrole

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

Added tests for workloadrebalancer controller

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-09-27 11:43:03 +05:30
karmada-bot 8039769a71
Merge pull request #5595 from anujagrawal699/addedTests-controllers/remediation
Added tests for remediation controller
2024-09-26 10:36:09 +08:00
Anuj Agrawal 32ae2178c2 Added tests for unifiedauth controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-09-24 22:12:23 +05:30
Anuj Agrawal 270819a779 Added tests for remediation controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-09-23 20:45:01 +05:30
Anuj Agrawal b7b508b599 Added tests for multiclusterservice controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-09-22 20:47:48 +05:30
Anuj Agrawal 547a6a94bc Added tests for gracefuleviction controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for gracefuleviction controller

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

Added tests for gracefuleviction contoller

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

Added tests for gracefuleviction controller

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

Added tests for gracefuleviction controller

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-09-19 13:12:14 +05:30
karmada-bot e76ce6355b
Merge pull request #5400 from whitewindmills/apienablement-condition
add new cluster condition: CompleteAPIEnablements
2024-09-14 09:39:00 +08:00
whitewindmills 3307a52627 add new cluster condition: IncompleteAPIEnablements
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-09-13 17:40:24 +08:00