Commit Graph

207 Commits

Author SHA1 Message Date
RainbowMango 5865ee6ce2 Refactor Work index WorkIndexByResourceBindingID and WorkIndexByClusterResourceBindingID
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2025-04-12 19:07:06 +08:00
wei-chenglai d231a87aed Bump golang to 1.23.7 and golangci-lint to 1.64.8
Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
2025-03-22 13:03:28 -04:00
karmada-bot 6810e88643
Merge pull request #6043 from vie-serendipity/feat/suspend
feat: replace instruction annotation with work suspendDispatching field
2025-03-20 17:21:40 +08:00
RainbowMango e3244462d7 Update Works index with a unique name
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2025-03-19 16:09:05 +08:00
vie-serendipity 4b437e40f4 feat: replace instruction annotation with work suspendDispatching field
feat: rename workIndex and mv GetWorkSuspendDispatching to helper

feat: modify the style of Deprecated
Signed-off-by: vie-serendipity <2733147505@qq.com>

feat: label and annotate workloads even though work is suspended

Signed-off-by: vie-serendipity <2733147505@qq.com>

test: fix ut for CreateOrUpdateWork

Signed-off-by: vie-serendipity <2733147505@qq.com>
2025-03-19 15:04:55 +08:00
zach593 d226ce11f3 update object watcher metrics and simplify cluster object version recording
Signed-off-by: zach593 <zach_li@outlook.com>
2025-03-09 00:52:48 +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
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
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
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
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 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
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
whitewindmills 3307a52627 add new cluster condition: IncompleteAPIEnablements
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-09-13 17:40:24 +08:00
Amir Alavi 5f54261725
fix: work status sync when work dispatching is suspended
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-08-20 10:45:15 -04:00
changzhen b59761efcf fix error of when cluster status condition update
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-08-19 16:34:50 +08:00
karmada-bot e7cb1332c5
Merge pull request #5318 from chaosi-zju/fixpatch
fix expected patch operations may be missed when AggregateStatus
2024-08-16 10:29:35 +08:00
chaosi-zju 478b8c6456 fix expected patch operations may be missed when AggregateStatus
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-08-14 15:21:44 +08:00
Yash Pandey 4d49f36d09 Added unit test cluster_condition coverage : 100% (squashed commit)
Signed-off-by: Yash Pandey <yash.pandey@agoda.com>

Signed-off-by: Yash Pandey <yash.pandey@agoda.com>
2024-08-12 17:59:07 +05:30
chaosi-zju 16a4f42862 repair the test for rb status controller
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-08-08 12:18:39 +08:00
xovoxy 38ee277de7 optimize: used unified context in controller
Signed-off-by: xovoxy <xilovele@gmail.com>
2024-08-06 11:44:20 +08:00
chaosi-zju 32850c405c add metrics for recreate/update resource event when sync work status
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-07-26 11:17:48 +08:00
changzhen d5a317a165 fix-remedy-e2e-errors
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-06-12 15:22:01 +08:00
whitewindmills 6d18bea052 Integrate UpdateStatus function
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-06-11 16:57:51 +08:00
zhzhuang-zju 309c67701b bump golangci to v1.58.0
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-05-13 09:32:13 +08:00
karmada-bot e30ca1b9cc
Merge pull request #4882 from whitewindmills/work-labels-annotations
Use webhook to set associated labels and annotations of work
2024-05-10 11:51:33 +08:00
whitewindmills a5d8ba7c09 Use webhook to set associated labels and annotations of work
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-05-10 11:03:19 +08:00
whitewindmills 9c70349878 Use != for RV comparison
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-05-07 15:37:23 +08:00
RainbowMango d4b610cad6 fix lint issues
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-05-06 11:36:54 +08:00
whitewindmills 8328054439 Deprecate name/namespace labels of work
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-04-28 15:22:44 +08:00
yizhang-zen 04395e3579 Rename func to getClusterNameFromAnnotation to match with updated behavior
Signed-off-by: yizhang-zen <yizhang@zendesk.com>
2024-04-09 14:06:27 -07:00
huangyanfeng 7c2b3e19ee if an error is non-nil not need to set Result.Requeue true
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2024-04-03 14:08:22 +08:00
changzhen 0e60af8ee2 remove work label on the member cluster resource
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-03-28 12:56:35 +08:00
chaosi-zju 8f5cc4995c sync deployment replicas when it is controlled by hpa
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-03-14 20:39:22 +08:00
zhzhuang-zju 8241b3cab2 update work status condition when recreate failed
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-02-21 11:07:29 +08:00
Mohammed Affan 970435c3d1 Add linting for unused parameters
Signed-off-by: Mohammed Affan <mohammed.affan.727@gmail.com>
2024-01-13 12:26:54 +05:30
jwcesign 947a80e00f cleanup: enable revive(var-naming rule) checking
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-01-10 12:15:03 +08:00
chaosi-zju 56e0d8c9e6 execute InterpretHealth even if statusRaw is nil
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-12-20 15:44:39 +08:00
jwcesign 18a2e07e5b fix: do not recreate endpointslice if k8s controller deletes it in provider member clusters
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-14 21:46:18 +08:00
karmada-bot 33fdf5225f
Merge pull request #4094 from ctripcloud/fix-binding-status-error-rate
Use Patch() when binding-status controller update workload's status
2023-12-09 10:11:06 +08:00
lxtywypc f8569d3b37 fix incorrect forType in clusterResourceBinding status controller
Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-11-29 19:02:19 +08:00
chaosi-zju e9e8653c88 resourceModels supports extended resources
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-11-23 19:08:32 +08:00
zhy76 adef1e5974 feat: add license and verify license for code file
Signed-off-by: zhy76 <958474674@qq.com>
2023-11-16 11:11:21 +08:00
karmada-bot d6cc5b92e2
Merge pull request #4138 from jwcesign/fix-version-sync
fix: Sync workload's status.observedGeneration if it's updated
2023-10-24 19:52:27 +08:00
halfrost 92ab33ebc0 1. Change modelSortings to be a member variable of ResourceSummary to solve multithreading issues
2. Delete unused functions

Signed-off-by: halfrost <ydz627@gmail.com>
2023-10-23 09:25:09 -07:00
zach593 8520227897 improve update workload status error rate too high
Change-Id: I531e40fa99e657af3c060e59c13c47a835356274
Signed-off-by: zach593 <zach_li@outlook.com>
2023-10-20 10:28:07 +08:00
jwcesign e50f414b4f fix: Update workload's status.observedGeneration if it's updated
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-10-17 13:33:56 +08:00
chaosi-zju 19c63fca28 remove insecureSkipTLSVerify in UT test
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-09-13 15:07:45 +08:00