Commit Graph

65 Commits

Author SHA1 Message Date
lonelyCZ 3bcee9db07 Unify the dynamic client name for work_status_controller
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-10-09 10:25:38 +08:00
changzhen cab85d967e fix error of reflectStatus failed when call resourceInterpreter
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-26 14:08:33 +08:00
changzhen afca732825 reflect health status for recording the healthy state of the current resource running in the member cluster
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-24 17:27:56 +08:00
RainbowMango 8461e4fb8c rename and re-organize the informermanager
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-08-09 17:24:23 +08:00
yy158775 e26c0880cd don't collect status data when the work to be deleted
Signed-off-by: yy158775 <1584616775@qq.com>
2022-08-04 14:29:39 +08:00
Garrybest d1ce1a126d fix implicit issue for event filter
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-05-30 10:48:32 +08:00
karmada-bot b2ebfb6036
Merge pull request #1733 from XiShanYongYe-Chang/skip-reflect-status
Skip reflect work status when resource has empty status
2022-05-11 10:20:33 +08:00
lv 12d9023a5c [fix] delete work status 'Resource' field
Signed-off-by: lv <yanru.lv@daocloud.io>
2022-05-09 09:48:21 +08:00
changzhen d0dadb282a skip reflect work status when resource has empty status
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-05-07 11:02:22 +08:00
changzhen 0b985f4463 add default reflectstatus implementation with deployment kind
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-04-24 11:19:42 +08:00
changzhen ecc8ddbb02 add ReflectStatus ResourceInterperter interface to grab workload status
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-04-22 10:08:03 +08:00
RainbowMango 11fd0f935c Refactor ratelimit flags to make it easier to share with karmada-agent.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-03-18 17:25:13 +08:00
RainbowMango 8a402f8e94 chore: cleanup ratelimiter flags
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-03-08 08:57:01 +08:00
pigletfly 9e28d6c6e8 add ratelimiter flags
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-03-03 16:09:39 +08:00
karmada-bot d980eeac5d
Merge pull request #1321 from pigletfly/fix-worker-num
introduce concurrent flags to controllers
2022-02-25 15:17:06 +08:00
RainbowMango 3f0aa79948 Fix comments from myself.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-02-25 10:42:26 +08:00
pigletfly 957be91796 Fix controller reconcile concurrent
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-02-24 15:54:14 +08:00
Garrybest 85d8a6ccf4 add karmada-descheduler
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-02-24 11:43:28 +08:00
Garrybest 0777cf064c clean up GetObjectFromCache
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-02-23 14:19:38 +08:00
c30013971 773de5e746 Update first in RetryOnConflict
Signed-off-by: c30013971 <cuidengdeng@huawei.com>
2022-01-28 14:44:07 +08:00
chen zechun 306d06a8ff change syncWorkStatus and reflectStatus function, modify comments and rename variable names.
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-01-12 12:05:32 +08:00
helenfrank 43036a9670 Replace all the retry.DefaultBackoff with retry.DefaultRetry from codebase
Signed-off-by: helenfrank <helenfrank@protonmail.com>
2022-01-11 10:28:59 +08:00
lihanbo 5290f07345 abort deleting workload when the member cluster is unready
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-19 14:29:12 +08:00
jingxueli 0aec855964 set default for clusterCacheSync timeout and make it configurable
Signed-off-by: jingxueli <jingxueli@trip.com>
2021-12-16 21:28:04 +08:00
Garrybest 7445bd90da fix slow enqueue of async worker
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-04 19:44:33 +08:00
pigletfly 39985d5dbe Add retry on update status
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-11-25 19:55:03 +08:00
karmada-bot 9d31827a4b
Merge pull request #925 from pigletfly/refactor-object-watcher
refactor object watcher interface
2021-11-08 11:39:42 +08:00
pigletfly dac00692e7 refactor object watcher interface
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-11-05 23:26:51 +08:00
karmada-bot 51c911a60b
Merge pull request #894 from mrlihanbo/cluster_status_bugfix
add Timeout in WaitForCacheSync
2021-11-05 15:48:04 +08:00
lihanbo ac3878ec03 add Timeout in WaitForCacheSync
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-05 13:50:30 +08:00
lihanbo cc0f6ed08b return nil when the obj not managed by Karmada in work status controller
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-05 11:33:58 +08:00
Garrybest 08fa785670 run async worker with no intervals
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-10-18 10:58:49 +08:00
changzhen e118c7909e fix an error when karmada-controller-manager restart
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-09-26 20:39:51 +08:00
iawia002 61a946aff7 Move GenerateKey function out of the worker file
Signed-off-by: iawia002 <z2d@jifangcheng.com>
2021-09-24 10:53:38 +08:00
esto a6165e47f9 update import-aliases
Signed-off-by: esto <1291156784@qq.com>
2021-09-15 15:13:14 +08:00
Garrybest 1452fa57e3 modify usage of informer-manager
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-08-16 17:16:42 +08:00
pigletfly 8edb376966 Move labels to apis
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-08-06 00:03:00 +08:00
RainbowMango 54801cddca remove inline json tag from status field
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-07-23 09:52:09 +08:00
Garrybest 38690cbda6 share informer manager in global
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-07-05 19:31:41 +08:00
changzhen f32bd501e6 add service_export_controller to watch serviceexport and report endpointslices to karmada
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-03 16:33:07 +08:00
pigletfly 46e587e5ad Fix sync work status
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-06-24 16:44:53 +08:00
pengli b602aaf868 no informer for sync status back when k8s resource applied failed to member cluster
Signed-off-by: pengli <justdoit.pli@gmail.com>
2021-06-18 12:00:28 +08:00
Rui Fang bbcf69f368
work: fix workload name conflicts (#358) (#359)
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-05-20 10:34:27 +08:00
RainbowMango 763c2a10e7 Adopt Reconcile() method signature change
Adopt MapOjbect removing change
Adopt event handling object changes
Adopt ToRequestsFunc to MapFunc change
Adopt EnqueueRequestsFromMapFunc change
Adopt runerable interface change
Adopt using admission review version v1

Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-05-08 19:12:35 +08:00
Hongcai Ren fd5aeb8cf5
Introduce federated object key for refactor status clollection (#266)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-04-12 15:12:16 +08:00
yangcheng-icbc 3c193e1760
the binding name for any resource template should be a name-kind format (#248)
Signed-off-by: icbc-yangcheng <shineus1996@gmail.com>
2021-03-31 16:33:45 +08:00
lihanbo e7aeb332ad add e2e test for karmada agent
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-03-27 17:58:55 +08:00
RainbowMango 4696f7800d Fix non-operation update block status reflect issue
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-25 21:29:15 +08:00
Hanbo Li 65a4f32e3e
generate work name based on different resource (#232)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-03-25 11:59:06 +08:00
Hanbo Li 59a02e0030
add karmada agent (#226)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-03-24 14:51:13 +08:00