Commit Graph

138 Commits

Author SHA1 Message Date
changzhen 12e2585e82 Cleanup cyclomatic complexity with function EnsureWork
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-14 20:43:45 +08:00
karmada-bot ae007af9e3
Merge pull request #514 from pigletfly/remove-duplicate-import
Remove duplicate import
2021-07-10 09:29:28 +08:00
karmada-bot 1f8c6a9bba
Merge pull request #508 from XiShanYongYe-Chang/webhook
Mutate policy's ResourceSelectors in webhook
2021-07-09 18:11:28 +08:00
pigletfly 1e274e9b8f Remove duplicate import
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-07-09 12:06:59 +08:00
RainbowMango d8e2053b35 Suppress reported work from propagating
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-07-09 11:55:30 +08:00
changzhen 1e6c21cc28 mutate policy's ResourceSelectors in webhook
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-09 11:02:23 +08:00
pigletfly d4bbde279f Add skippedPropagatingAPIs option
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-07-08 19:17:01 +08:00
changzhen 7e63e90ef9 derive service from ServiceImport
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-07 19:30:40 +08:00
karmada-bot b35402c3bd
Merge pull request #496 from qianjun1993/ensureWork
ensure work with given replicas
2021-07-07 15:40:24 +08:00
junqian ffe285ea2a ensure work with given replicas
Signed-off-by: junqian <junqian@tencent.com>
2021-07-07 15:14:23 +08:00
changzhen a6c76d2ffa collect endpointslices from executionNamespace to service namespace
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-06 22:08:58 +08:00
Garrybest 38690cbda6 share informer manager in global
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-07-05 19:31:41 +08:00
karmada-bot d95edbd747
Merge pull request #484 from XiShanYongYe-Chang/mcs
Add ServiceExport controller to report EndpointSlice
2021-07-03 17:15:19 +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
Garrybest b1de17b3d7 block start in cluster health monitor
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-07-01 10:41:45 +08:00
karmada-bot e1db428290
Merge pull request #454 from Garrybest/cluster-lifecycle
monitor cluster health in cluster_controller
2021-06-28 09:18:12 +08:00
Garrybest d434a4d57e monitor cluster health in cluster_controller
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-27 16:43:29 +08:00
lihanbo f45147a9ce adopt applying manifest to member cluster when resource with the same name and kind already exists
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-06-26 16:25:10 +08:00
karmada-bot d982bea021
Merge pull request #468 from pigletfly/fix-sync-work
Fix sync work status
2021-06-25 21:51:09 +08:00
shinytang6 3ad39af5cd fix(controller): rm sub-resources from cluster api enablement list
Signed-off-by: shinytang6 <1074461480@qq.com>
2021-06-24 21:06:09 +08:00
pigletfly 46e587e5ad Fix sync work status
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-06-24 16:44:53 +08:00
karmada-bot c053b6c8b3
Merge pull request #462 from vincent-pli/extend-cluster-status
Extend cluster.status.APIEnablements.Resources to struct with Kind
2021-06-24 15:15:08 +08:00
pengli d5ee4e64cd Extend cluster.status.APIEnablements.Resources to struct with Kind
Signed-off-by: pengli <justdoit.pli@gmail.com>
2021-06-24 13:40:52 +08:00
Garrybest 24ca29017e add ScalarResources into cluster
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-23 15:27:34 +08:00
karmada-bot fa3ac4888e
Merge pull request #421 from Garrybest/cluster-lifecycle-manager
add cluster lease controller
2021-06-18 17:50:12 +08:00
karmada-bot 3f99da3024
Merge pull request #442 from vincent-pli/no-informer-for-member-cluster-when-applied-faied
No informer for sync status back when k8s resource applied failed to member clusters
2021-06-18 12:51:25 +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
karmada-bot c6000efe6b
Merge pull request #444 from Garrybest/init-container
modify pending pods resource calculation
2021-06-17 10:13:08 +08:00
Rohan Sharma cd00c7c73c Fix redundant log
Signed-off-by: Rohan Sharma <rhnsharma5113@gmail.com>
2021-06-16 20:25:31 +05:30
Garrybest b9010cfe9b add cluster lease controller
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-16 21:19:43 +08:00
Garrybest 207eb1677f add pending pods resource calculation
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-16 21:13:46 +08:00
Garrybest 7bc0d00e61 clean up cluster resource calculation
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-15 20:15:04 +08:00
Garrybest cd6ba3558f calculate ResourceSummary in new cluster API
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-15 15:03:06 +08:00
RainbowMango 17804ac550 Split listNodesAndPods function
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-06-11 17:13:42 +08:00
karmada-bot 738c148401
Merge pull request #417 from Garrybest/cluster-api
make cluster represents more precise resources
2021-06-11 16:15:02 +08:00
Garrybest 7632300761 change legacy code to adopt new cluster API
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-10 19:44:58 +08:00
lihanbo aa4baa12a2 clean up works when resource binding has been removed
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-06-10 10:00:54 +08:00
Garrybest 0331f8c6df modify hard code in cluster_status_controller
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-04 20:51:16 +08:00
Garrybest 26085fcd6f feat(cluster-status-controller): use cached lister for getting node summary
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-03 11:54:44 +08:00
changzhen 5473488c04 fix golangci-lint: Implicit memory aliasing in for loop(G601)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-06-01 16:42:57 +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
gy95 d33ae3818c
fix blank lines of import packages and repeated import problems (#337)
Signed-off-by: gy95 <guoyao17@huawei.com>
2021-05-16 19:01:11 +08:00
futuretea 39d1a3a636 Fix goimports
Signed-off-by: futuretea <1913508671@qq.com>
2021-05-13 11:31:19 +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 fe2efa6139
Retry collect cluster status in case of cluster offline. (#275)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-04-20 09:16:54 +08:00
Hongcai Ren 71f4ddeb81
Add --cluster-status-update-frequency flag for karmada-agent (#272)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-04-17 18:38:24 +08:00
Hanbo Li 28e6d3ff71
support ReplicaSchedulingPolicy (#269)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
Signed-off-by: Lihanbo (Hampo <l00512446@china.huawei.com>
2021-04-15 17:37:38 +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
Hanbo Li a3ebc74cde
trigger resync for override policy changes (#250)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-04-02 17:34:04 +08:00
Hanbo Li dcad956744
optimize karmadactl unjoin command (#254)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-04-02 10:14:07 +08:00