Commit Graph

568 Commits

Author SHA1 Message Date
yingjinhui 2d6f491c61 refactor util.BuildClusterConfig
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-11-09 00:26:19 +08:00
zhangyukun d4e5f04791 Resource Interpreter framework introduce Lua runtime layer
Signed-off-by: zhangyukun <38148677+jameszhangyukun@users.noreply.github.com>
2022-11-08 09:17:33 +08:00
karmada-bot f32741e13f
Merge pull request #2724 from lonelyCZ/pr-karmadactl-util-idempotency
Fix and unify `CreateOrUpdateXXX` functions for karmadactl
2022-11-02 11:32:25 +08:00
lonelyCZ 0b535a4d12 Fix and unify CreateOrUpdateXXX functions for karmadactl
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-11-01 20:50:33 +08:00
karmada-bot 9595e5f78e
Merge pull request #2706 from ikaven1024/ut-cache-mcs
[ut] add ut for cache.go, mcs.go, and improve DeleteEndpointSlice
2022-11-01 17:36:25 +08:00
karmada-bot 8d5f56b8b3
Merge pull request #2716 from chaunceyjiang/ut
Add UT for imageoverride
2022-11-01 17:04:43 +08:00
yingjinhui 07df5bcac5 [ut] add ut for cache.go, mcs.go
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-11-01 16:03:14 +08:00
karmada-bot f68da6d64e
Merge pull request #2715 from ikaven1024/pr-cleanup-proxy
clean up proxy repeating code
2022-11-01 11:53:43 +08:00
chaunceyjiang 50ec86b796 Add UT for imageoverride
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-11-01 11:30:08 +08:00
karmada-bot ee850b110d
Merge pull request #2700 from ikaven1024/ut-resource
add ut for resource.go
2022-11-01 09:57:44 +08:00
karmada-bot 3fc113e1a4
Merge pull request #2709 from ikaven1024/ut-predicate
improve predicate.go
2022-11-01 09:49:25 +08:00
yingjinhui 8e0ceb72ec [ut]] add ut for resource.go
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-31 22:13:32 +08:00
yingjinhui 38b5eabb4a clean up proxy repeating code
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-31 21:35:52 +08:00
karmada-bot bd8d734054
Merge pull request #2678 from cmicat/feature/proxy-connector-framework
Add Proxy Framework
2022-10-31 15:55:24 +08:00
karmada-bot aae442f065
Merge pull request #2704 from Garrybest/pr_estimator
leverage scheduler cache to estimate replicas
2022-10-31 15:48:46 +08:00
raymondmiaochaoyue 7e24783b36 Add proxy framework.
Signed-off-by: raymondmiaochaoyue <raymondmiaochaoyue@didiglobal.com>
2022-10-31 14:50:15 +08:00
karmada-bot 12ed020443
Merge pull request #2705 from ikaven1024/ut-binding
[ut] add ut for binding.go
2022-10-31 11:53:23 +08:00
yingjinhui d776fd9d33 [ut] add ut for binding.go
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-31 10:55:00 +08:00
Garrybest a0b7ba5d1d leverage scheduler cache to estimate replicas
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-10-30 22:45:16 +08:00
Garrybest f52043b447 add lifted files
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-10-30 22:45:16 +08:00
yingjinhui 331ac98671 [ut] add ut for predicate.go
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-29 23:28:03 +08:00
yingjinhui 68e24a2f4e [ut] add ut for cluster.go, clusterlease.go, membercluster_client.go
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-29 22:07:38 +08:00
karmada-bot c5e290c01d
Merge pull request #2669 from ikaven1024/ut-resources
[ut] add ut for pkg/util/clusterrole, rbac, sercret,  secret, serviceaccount
2022-10-27 11:38:21 +08:00
yingjinhui ee73db8b6c [ut] add ut for secret.go, serviceaccount.go, rbac.go
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-27 10:46:23 +08:00
raymondmiaochaoyue 446ea00707 test worker.go
Signed-off-by: raymondmiaochaoyue <raymondmiaochaoyue@didiglobal.com>
2022-10-26 12:34:09 +08:00
yingjinhui c024594b02 [ut] add ut for pkg/util/selector.go
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-22 11:22:05 +08:00
karmada-bot 0debe0919c
Merge pull request #2660 from Poor12/add-ut-for-helper
[UT]Add ut for job.go and policy.go
2022-10-20 17:49:32 +08:00
Poor12 138d9eac5f add ut for job.go and policy.go
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-10-20 16:14:58 +08:00
Poor12 1414d7b9ba add gen-docs
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-10-20 15:35:46 +08:00
carlory 23b52270da karmada scheduler & descheduler introduce scheduler-estimator-service-prefix flag
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-10-12 13:53:25 +08:00
karmada-bot 362f77ad13
Merge pull request #2578 from Poor12/fix-sa
Fix serviceaccount continual regeneration by service account controller
2022-10-12 10:55:07 +08:00
Poor12 def9933fcf fix serviceaccount continual regeneration by service account controller in member clusters
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-10-12 10:01:49 +08:00
karmada-bot b9287479c5
Merge pull request #2606 from my-git9/conversion_test
add ut function for util/name.go
2022-10-11 21:10:07 +08:00
xin.li d89d92fa5b add ut function for util/name.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2022-10-11 19:59:36 +08:00
karmada-bot eceba6480a
Merge pull request #2584 from chaunceyjiang/overriders
introduce overriders for annotation and label
2022-10-11 09:05:24 +08:00
chaunceyjiang 8bcfd7810b introduce overriders for annotation and label
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-10-10 22:15:14 +08:00
karmada-bot 933e725940
Merge pull request #2602 from helen-frank/fix/runtimeMust
gclient handling programmer level errors
2022-10-10 19:18:06 +08:00
Poor12 746d0fd915 add ut for override.go
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-10-08 15:30:52 +08:00
Garrybest 4a657b5872 introduce type ImplicitPriority to represent the priority.
Signed-off-by: Garrybest <garrybest@foxmail.com>
Co-authored-by: RainbowMango <qdurenhongcai@gmail.com>
2022-09-30 14:48:05 +08:00
Garrybest 9bd626b3cc add implicit priority for PP and CPP
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-09-30 14:48:05 +08:00
helen 77a6f15994 gclient handling programmer level errors
Signed-off-by: helen <helenfrank@protonmail.com>
2022-09-30 11:08:31 +08:00
Poor12 d0f76e1070 add ut for lifted codes
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-09-29 10:55:54 +08:00
lixingchenDaoCloud 1bf4fb8a86 Remove redundant type conversions
Signed-off-by: lixingchenDaoCloud <captainchina_li@163.com>
2022-09-28 23:25:59 +08:00
changzhen 5ee9f6776e fix 2392: replace colon with point in the rbac resource name
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-09-26 10:10:56 +08:00
Garrybest 92d8c69d46 stop publish duplicated event
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-09-23 10:43:59 +08:00
changzhen 9387ab3fe7 Use Cluster secret ref namespace in unified-auth-controller when generate ClusterRoleBinding
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-09-16 15:23:56 +08:00
Poor12 133db50754 fix pod lister only list a pod
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-09-09 09:27:33 +08:00
Poor12 2e3e816ba2 Use transform func to save memory when large cluster
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-08-30 19:21:09 +08:00
karmada-bot 23ec2afa8b
Merge pull request #2410 from XiShanYongYe-Chang/reflect-work-health-status
Reflect health status for recording the healthy state of the current resource
2022-08-24 18:16:53 +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
lonelyCZ 4b4ca14345 Implement karmadactl register for joining clusters with PULL mode
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-08-23 15:41:48 +08:00
lonelyCZ fbc9599510 Implement karmadactl token command to manage bootstrap tokens
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-08-23 11:31:00 +08:00
karmada-bot a82c427509
Merge pull request #2395 from yusank/bugfix/sync-crb-status
fix: sync cluster level resource status
2022-08-22 11:48:50 +08:00
yusank d1617303a4 feat: sync cluster level resource status #2394
Signed-off-by: yusank <yusankurban@gmail.com>
2022-08-22 10:16:53 +08:00
karmada-bot 674641c1fa
Merge pull request #2369 from yy158775/id_join
avoid joining the same cluster repeatedly
2022-08-19 14:28:46 +08:00
karmada-bot dd7d70ae6f
Merge pull request #2366 from ikaven1024/feature-proxy
add proxy skeleton
2022-08-18 08:46:45 +08:00
yingjinhui dd1b6e2967 add proxy skeleton
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-08-17 18:55:06 +08:00
yy158775 23dd9cadcb solve cluster id repeat to join
Signed-off-by: yy158775 <1584616775@qq.com>
2022-08-17 12:05:40 +08:00
karmada-bot 4dbe338d18
Merge pull request #2377 from Poor12/master
Rename package name of typedmanager
2022-08-15 12:16:41 +08:00
Poor12 1374169fe3 Rename package name of typedmanager
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-08-15 11:26:30 +08:00
AllenZMC 53550a825c improve ut for taint
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-08-14 23:49:15 +08:00
karmada-bot 66af6ef502
Merge pull request #2313 from yy158775/unique_id
add ID the unique identifier for push and pull mode's cluster
2022-08-12 14:57:10 +08:00
karmada-bot 2197159032
Merge pull request #2355 from AllenZMC/improve_binding
add ut for binding
2022-08-12 14:12:10 +08:00
yy158775 474933826b add ID the unique identifier for push and pull mode's cluster
Signed-off-by: yy158775 <1584616775@qq.com>
2022-08-12 09:37:50 +08:00
karmada-bot f0379682a2
Merge pull request #2356 from AllenZMC/improve_taint
add ut for taint
2022-08-12 09:20:10 +08:00
AllenZMC e679b63a28 add ut for binding
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-08-10 11:10:18 +08:00
Poor12 e528657382 add typed shared informer
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-08-10 10:39:58 +08:00
AllenZMC 3eeb57e238 add ut for taint
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-08-09 22:26:24 +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
karmada-bot fcc994adc0
Merge pull request #2339 from XiShanYongYe-Chang/grace-eviction-binding-controller
Make changes to binding-controller to adopt graceful eviction
2022-08-06 11:23:07 +08:00
changzhen b6c7320f70 make changes to binding-controller to adopt graceful eviction
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-05 16:43:47 +08:00
karmada-bot bbb5e2949e
Merge pull request #2328 from nuclearwu/master
fix karmada-agent can not ensure default namespace issue
2022-08-05 16:38:06 +08:00
wuzhongjian 161c16de24 Fix 'namespace karmada-cluster not found' when cluster is being registered with 'pull' mode
Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com>
2022-08-05 13:52:37 +08:00
RainbowMango 286805c239 patch resourcebinding instead of update and update observed generation.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-08-05 09:17:01 +08:00
karmada-bot 54752ed626
Merge pull request #2324 from duanmengkk/feature_retain
Put Lease to default SkippedResourceConfig
2022-08-04 18:09:01 +08:00
changzhen 2457cee11c update import-aliases
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-04 15:47:25 +08:00
duanmeng 8e0a4ca5f2 Put Lease to default SkippedResourceConfig
Signed-off-by: duanmeng <duanmengng_yewu@cmss.chinamobile.com>
2022-08-04 14:58:43 +08:00
karmada-bot 7097347d86
Merge pull request #2311 from weilaaa/optimize_unstructured_convert_methods
optimize unstructured convert methods
2022-08-04 14:16:01 +08:00
weilaaa 4ed701069d optimize unstructured convert methods
Signed-off-by: weilaaa <weilanidaye@gmail.com>
2022-08-04 11:38:25 +08:00
karmada-bot 99b87bad79
Merge pull request #2284 from Garrybest/pr_toleration
add default tolerations for pp and cpp
2022-08-02 18:10:58 +08:00
Garrybest c5b35bd199 add default tolerations for pp and cpp
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-08-02 17:20:25 +08:00
karmada-bot bda97036c7
Merge pull request #2134 from wuyingjun-lucky/karmada_addon
Add karmadactl addons subcommand
2022-08-02 16:02:58 +08:00
AllenZMC 915afb5947 Optimize code to reduce redundancy
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-08-02 09:01:24 +08:00
RainbowMango dcbf8d2b96 Introduce RemoveCluster for ResourceBinding and ClusterResourceBinding
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-07-27 17:21:41 +08:00
wuyingjun 98ef6281a6 Support Karmada addon commands
Co-authored-by: duanmeng <duanmeng_yewu@cmss.chinamobile.com>
Signed-off-by: wuyingjun <wuyingjun_yewu@cmss.chinamobile.com>
2022-07-27 00:58:01 +08:00
dddddai 5743cebab0 make sure to update resource status
Signed-off-by: dddddai <dddwq@foxmail.com>
2022-07-26 11:18:31 +08:00
karmada-bot df125af3b0
Merge pull request #2187 from yy158775/learn
Add a New Type cachedRESTMapper
2022-07-21 10:37:45 +08:00
yangyong 155e5ed424 feat:add new type cachedRESTMapper to optimize GetGroupVersionResource
Signed-off-by: yy158775 <1584616775@qq.com>
2022-07-20 14:47:53 +08:00
karmada-bot e9730e2c55
Merge pull request #2214 from carlory/fix-error-test
use the existing utilerrors.AggregateGoroutines func to collect each cluster's replicas concurrently
2022-07-19 20:13:44 +08:00
carlory aca3965545 use the existing utilerrors.AggregateGoroutines func to collect each cluster's replicas concurrently
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-07-19 10:23:01 +08:00
karmada-bot d626fcc7cf
Merge pull request #1945 from Garrybest/pr_taint
add NoExecute taint manager
2022-07-18 16:26:43 +08:00
z50023861 e25b7bea56 add ut for pkg/utils/namespace
Signed-off-by: z50023861 <zhuwentao15@huawei.com>
2022-07-16 19:30:50 +08:00
Garrybest 1d2028b10f add taint manager
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-07-15 10:42:38 +08:00
carlory 0bf9750533 remove unused lifted codes
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-07-13 22:09:03 +08:00
karmada-bot 821a18542e
Merge pull request #1990 from CharlesQQ/cluster-pull-secret
feat: agent report secret
2022-07-08 10:56:31 +08:00
calvin0327 532b22f80d cleanup federated resource quota
Signed-off-by: calvin0327 <wen.chen@daocloud.io>
2022-07-08 09:55:22 +08:00
charlesQQ 8738617ad0 feat: agent report secret
Signed-off-by: charlesQQ <charles_ali@qq.com>
2022-07-07 14:26:07 +08:00
AllenZMC 1966ff634b Fix comment: `checking if scheduler has a replica assigned to each cluster`
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-07-05 16:16:16 +08:00
karmada-bot 67a4d86cb4
Merge pull request #2086 from chaunceyjiang/issue_2071
fix binding reference key hash collision
2022-07-04 10:34:26 +08:00
chaunceyjiang 5350072889 fix binding reference key hash collision
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-07-04 09:42:51 +08:00