Commit Graph

688 Commits

Author SHA1 Message Date
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
chaunceyjiang 6ffe6f0967 sync status of pvc
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-07-01 10:59:02 +08:00
AllenZMC 286026b3bf improve test coverage for validation
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-06-28 22:17:33 +08:00
changzhen 2e91ff1662 return err when create resource failed
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-06-28 16:28:14 +08:00
karmada-bot 7e8c841f73
Merge pull request #1972 from zgfh/fix-sa
bugfix: support  join 1.24 k8s: auto create secret when sa not create
2022-06-27 20:01:21 +08:00
karmada-bot a2bcb1acd4
Merge pull request #1822 from duanmengkk/feature_servicepromotefix
fixed a bug that the service could not be promoted and e2e test
2022-06-27 19:17:19 +08:00
karmada-bot 578961ea11
Merge pull request #2061 from ikaven1024/pr-lifted
add lifted doc
2022-06-26 19:22:19 +08:00
yingjinhui 085ecd4d14 add lifted doc
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-06-25 15:42:27 +08:00
chaunceyjiang 21cb9839a5 Add a CronJob to the default dependencinterpreter
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-06-25 14:31:12 +08:00
Alan Zhu 53a7fce680
auto create secret when sa not create
Signed-off-by: Alan Zhu <zg.zhu@daocloud.io>
2022-06-22 08:28:08 +08:00
duanmeng 0ea0f6f1cb fixed a bug that the service could not be promoted and e2e test
Signed-off-by: duanmeng <duanmeng_yewu@cmss.chinamobile.com>
2022-06-16 21:56:01 +08:00
Garrybest 3ad6f31a7b fix bugs of aggregating job status
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-06-10 17:47:00 +08:00
karmada-bot 6ae45f8618
Merge pull request #1902 from hanweisen/addevent
add syncEvent from execution_controller to resource
2022-06-10 10:42:01 +08:00
hanweisen f43f67367c add syncEvent from execution_controller to resource
Signed-off-by: hanweisen <hanweisen_yewu@cmss.chinamobile.com>
2022-06-10 09:58:07 +08:00
karmada-bot 3791cd5815
Merge pull request #1824 from wuyingjun-lucky/promote_bug
Fix promoting failed if a resource with other kind used same name has promoted before
2022-06-08 11:54:58 +08:00
wuyingjun 667e0ee9d5 fix promoting failed if a resource with other kind used same name has promoted before
Signed-off-by: wuyingjun <wuyingjun_yewu@cmss.chinamobile.com>
2022-06-04 21:10:55 +08:00
lonelyCZ bc45915bf3 Add karmada-search API documents
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-05-28 17:23:37 +08:00
AllenZMC 9d07030f11 Clear confusing comments
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-05-20 00:18:51 +08:00
karmada-bot d79d2bf802
Merge pull request #1806 from chaunceyjiang/issue_1797
fix when the type of svc is nodeport. resourcebindings FULLYAPPLIED field is False
2022-05-18 14:33:47 +08:00
karmada-bot 5199979588
Merge pull request #1799 from huone1/spreadconstraint-admission
optimize the validating webhook for spreadconstraint
2022-05-18 11:06:46 +08:00
huone1 d969e0c6bc optimize the validating webhook for spreadconstraint
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-05-18 10:58:41 +08:00
Garrybest 967fa8d18a add cluster lifecycle management test
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-05-17 21:51:22 +08:00
Garrybest 7107e3934f enhance cluster lifecycle management
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-05-17 21:17:42 +08:00
chaunceyjiang 52a3c46218 fix when the type of svc is nodeport. resourcebindings FULLYAPPLIED field is False
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-05-17 15:26:18 +08:00
karmada-bot df60b85ff3
Merge pull request #1682 from ikaven1024/pr-lifted
add update-lifted and verify-lifted
2022-05-12 11:51:42 +08:00
yingjinhui 568a22a79e add update-lifted and verify-lifted
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-05-12 10:43:35 +08:00
karmada-bot 977725d479
Merge pull request #1706 from likakuli/feature_fixemptyselectorerr
fix empty resource selectors which result to policy will not be consi…
2022-05-10 17:03:31 +08:00
karmada-bot 810048fe89
Merge pull request #1670 from XiShanYongYe-Chang/update-work-contains
Update judge work contains serviceExport with .spec.workload.manifests
2022-05-07 10:44:27 +08:00
likakuli 56dfba331b fix empty resource selectors which result to policy will not be considered matched
Signed-off-by: likakuli <1154584512@qq.com>
2022-05-01 17:09:36 +08:00
changzhen 695c29fe61 add e2e for ingressStatus collection
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-04-28 11:55:57 +08:00
karmada-bot fb30db012d
Merge pull request #1668 from XiShanYongYe-Chang/sort-aggregatedStatus-by-clustername
Sort the aggregatedStatus in rb/crb by the clusterName
2022-04-27 14:32:15 +08:00
changzhen 43fde63b4d update judge work contains serviceExport with work.spec.workload.manifests
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-04-26 20:43:06 +08:00
changzhen 86072e1dbd sort the aggregatedStatus in rb/crb by the clusterName
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-04-26 19:40:14 +08:00
AllenZMC 0ce25cb82b add ut for discovery
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-04-26 17:07:32 +08:00
karmada-bot f4ddd15b61
Merge pull request #1633 from XiShanYongYe-Chang/work-status-grab
Add ReflectStatus ResourceInterperter interface to grab workload status
2022-04-25 17:37:12 +08:00
lonelyCZ 4d0186b815 Add lifted information for logs.go
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-04-25 15:10:25 +08:00
changzhen 0454944b63 add default reflectstatus implemetation
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-04-24 16:32:03 +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
lonelyCZ a52bfca0b8 Add logs function to karmadactl
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-04-22 13:52:12 +08:00
karmada-bot a3c334c3b1
Merge pull request #1637 from AllenZMC/improve_test
add ut for rules
2022-04-22 11:41:07 +08:00
changzhen c1c9ef8904 update lifted doc
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-04-22 09:43:59 +08:00
AllenZMC 48029b7fb7 add ut for rules
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-04-21 22:54:25 +08:00
karmada-bot 28a6c2c767
Merge pull request #1620 from XiShanYongYe-Chang/fix-timeout-with-cluster-proxy
[AA] fix timeout when request of `-w` or `logs -f` flags with cluster/proxy
2022-04-21 12:45:06 +08:00
changzhen 1efbeb6d79 fix timeout when request of -w or logs -f with cluster/proxy
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-04-20 21:01:57 +08:00
karmada-bot 73e24c2ac5
Merge pull request #1622 from stingshen/stingshen/nil_cluster_secret
check if cluster secretRef is nil before using it
2022-04-20 09:11:07 +08:00
stingshen 3eada92e03 check if cluster secretRef is nil before using it
Signed-off-by: stingshen <stingshen@126.com>
2022-04-19 19:31:40 +08:00
AllenZMC 2d1bb23b9d improve test coverage for validation
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-04-19 10:44:30 +08:00
AllenZMC 81bb528494 add ut for condition
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-04-14 20:56:38 +08:00
Garrybest 5e9d5d79bb add parallelism in estimator
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-03-30 20:30:41 +08:00
AllenZMC e0eae7c52d add ut for node helper
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-03-25 14:01:41 +08:00
AllenZMC 850d86dece improve test coverage
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-03-24 22:25:11 +08:00
karmada-bot 70a08589f5
Merge pull request #1506 from huone1/refactor/selectclusters
refactor the selectclusters process
2022-03-24 16:51:22 +08:00
Garrybest 6ca7c2a235 fix hack/update-estimator-protobuf.sh failed with Golang v1.18
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-03-24 15:14:40 +08:00
c30013971 607b3e918d add a ut for pod.go
Signed-off-by: c30013971 <cuidengdeng@huawei.com>
2022-03-23 17:58:51 +08:00
huone1 c69d0e0eda refactor the selectclusters process
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-23 14:28:16 +08:00
huone1 067d45ec4d fix the fulluapplied status is wrong in some scenario
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-03-22 11:33:44 +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
changzhen 9e40d959e2 add file to record lifted flie list
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-03-17 20:47:27 +08:00
changzhen 85ab6c7699 add ut for federatedresourcequota validating
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-03-16 14:37:13 +08:00
changzhen 4f545e37c6 lifted ut from the k8s codebase for resourcequota
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-03-16 14:13:33 +08:00
changzhen d711b72f45 tidy up lifted file
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-03-15 10:42:32 +08:00
AllenZMC 3c61c61105 reduce unnecessary code operations in some cases and improve test coverage
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-03-09 23:09:59 +08:00
karmada-bot df072cf238
Merge pull request #1458 from chinmaym07/prevent-network-api
Prevented network api from propagating
2022-03-09 14:53:21 +08:00
chinmaym07 48ffb41720 Prevented network api from propagating
Signed-off-by: chinmaym07 <b418020@iiit-bh.ac.in>
2022-03-09 02:17:25 +05:30
karmada-bot 8d460a1bd9
Merge pull request #1446 from RainbowMango/pr_cleanup_ratelimiter
chore: cleanup ratelimiter flags
2022-03-09 02:34:20 +08:00
RainbowMango 8a402f8e94 chore: cleanup ratelimiter flags
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-03-08 08:57:01 +08:00
AllenZMC e21c848e80 improve test coverage
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>

improve test coverage

Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-03-07 13:09:24 +08:00
AllenZMC f35838a5ce remove redundant code and improve test coverage
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-03-03 18:37:25 +08:00
karmada-bot f3b1142599
Merge pull request #1399 from pigletfly/add-ratelimiter-flags
Introduce ratelimiter flags
2022-03-03 17:25:13 +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 fe8500bfc9
Merge pull request #1306 from zgfh/fix/karmada-join
fix:  karmada join failed when secret exist
2022-03-02 14:45:13 +08:00
changzhen fdc2fdb370 eliminate duplicate getworks function
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-03-01 09:52:51 +08:00
changzhen b457a3b2e5 add federatedResourceQuota sync controller
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-02-28 16:13:14 +08:00
AllenZMC bc3add201d improve test
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-02-27 21:10:54 +08:00
lihanbo 4569663b40 adapt for propagating dependencies
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2022-02-26 15:49:06 +08:00
Garrybest 85d8a6ccf4 add karmada-descheduler
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-02-24 11:43:28 +08:00
karmada-bot 670a77aead
Merge pull request #1380 from Garrybest/pr_estimator
Descheduler: Implement GetUnschedulableReplicas for estimator
2022-02-23 14:54:04 +08:00
Garrybest 90900309ca implement GetUnschedulableReplicas for estimator
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-02-23 14:19:51 +08:00
Garrybest 0777cf064c clean up GetObjectFromCache
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-02-23 14:19:38 +08:00
karmada-bot 0c043f636f
Merge pull request #1332 from XiShanYongYe-Chang/mci
add MultiClusterIngress API for MCI feature
2022-02-23 09:11:04 +08:00
Garrybest 728ef531e0 fix bugs of resource computing
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-02-22 16:30:24 +08:00
changzhen 54762a28b3 add networking v1alpha1 schemes to gclient
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-02-21 15:25:06 +08:00
pigletfly eef56c31d2 Fix add retry on createorupdate
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-02-11 14:30:36 +08:00
pigletfly c996f6bd5b Add retry on CreateOrUpdateWork
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-02-09 17:00:56 +08:00
Alan Zhu 44299055e0 fix: karmada join fail when secret exist
Signed-off-by: Alan Zhu <zg.zhu@daocloud.io>
2022-01-24 20:13:37 +08:00
wlp1153468871 c570006603 Update first in RetryOnConflict
Signed-off-by: wlp1153468871 <luping.wei@daocloud.io>
2022-01-24 18:55:38 +08:00
karmada-bot e2c7d90aa0
Merge pull request #1298 from pigletfly/fix-log
Fix ignore log error when error is isnotfound
2022-01-21 16:41:25 +08:00
pigletfly b3c31f2fad Fix ignore log error when error is isnotfound
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-01-21 16:08:01 +08:00
karmada-bot abc767bfcd
Merge pull request #1277 from iawia002/unstructured
Clean up the code that converts Unstructured objects
2022-01-20 10:09:25 +08:00
Xinzhao Xu 501f68aea4 Clean up the code that converts Unstructured objects
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2022-01-19 10:28:30 +08:00
changzhen fc7616e234 update HookEnabled interface with resourceinterpreter
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-01-19 09:27:15 +08:00
karmada-bot 0d98cc368d
Merge pull request #1253 from iawia002/aggregate-status-hook
Implementing the AggregateStatus hook
2022-01-19 08:56:24 +08:00
Xinzhao Xu 2f55e6c583 Implementing the AggregateStatus hook
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2022-01-18 20:35:26 +08:00
pigletfly 44496e904c Add kind in log
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-01-18 19:23:42 +08:00
carlory f697c03c74 add validation for cluster api and remove cluster validating webhook
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-01-14 12:08:43 +08:00
RainbowMango 990bf25072 mark override policy spec.targetCluster and spec.overriders deprecated
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-01-11 19:24:30 +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
Garrybest ae3eaaee5b fix bug of resource computing
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-01-08 12:03:49 +08:00
changzhen 9833a814a4 create or update cluster and create impersonation secret for pull cluster
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-12-27 21:07:00 +08:00
changzhen bc377033e3 upgrade scenario for pull mod cluster
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-12-27 12:22:08 +08:00
Xinzhao Xu a895c38005 Implementing the ReviseReplica hook
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-24 16:02:25 +08:00
lihanbo 280028d1a1 fix the name of impersonate service account
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-24 14:02:03 +08:00
lihanbo beb4dd7581 add unified auth controller
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-23 19:46:39 +08:00
Garrybest 9b3b5789f0 fix division bugs when pod request zero scalar resource
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-23 16:07:05 +08:00
Xinzhao Xu 5b3c9245b8 Add unittest for getOverridersFromOverridePolicies
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-21 10:37:34 +08:00
Xinzhao Xu 9a0c78757a Refactor the matching method in overridemanager
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-21 10:37:14 +08:00
karmada-bot 5eefcd6a49
Merge pull request #1053 from mrlihanbo/delete-work-bugfix
abort deleting workload when the member cluster is unready
2021-12-20 17:07:27 +08:00
karmada-bot a916dda8d2
Merge pull request #1107 from Shike-Ada/pr-commit
update kube-apiserver and kube-controller-manager default version
2021-12-20 09:41:26 +08:00
karmada-bot c69e955bfb
Merge pull request #1124 from lonelyCZ/override-validating
Implementing karmada-webhook of validating OverridePolicy
2021-12-20 09:07:26 +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
changzhen 586cd9d407 update discoveryv1beta1 to discoveryv1 for endpointslice
Signed-off-by: changzhen <changzhen5@huawei.com>
Signed-off-by: Shike-Ada <1073457937@qq.com>
2021-12-18 17:19:21 +08:00
lonelyCZ b8d46597a9 Implementing karmada-webhook of validating OverridePolicy
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-18 12:42:22 +08:00
karmada-bot dba350cfd7
Merge pull request #1119 from Garrybest/pr_panic
fix panix in DivideReplicasByTargetCluster
2021-12-17 10:25:23 +08:00
Garrybest 09958a3b43 add test for TestDivideReplicasByTargetCluster
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-17 09:57:36 +08:00
Garrybest f282e96493 fix panix in DivideReplicasByTargetCluster
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-17 09:57:20 +08:00
karmada-bot 5ea1b035ed
Merge pull request #1114 from iawia002/override-rules
Implementing the new OverrideRules
2021-12-17 09:28:23 +08:00
Xinzhao Xu 2de0290aab Implementing the new OverrideRules
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-16 21:36:21 +08:00
jingxueli b081f35cab retain ownerReferences before update clusterObj
Signed-off-by: jingxueli <jingxueli@trip.com>
2021-12-16 17:24:51 +08:00
Xinzhao Xu 8d44a628f4 Cleanup names package
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-13 17:35:08 +08:00
Xinzhao Xu 26ea1ab297 Introduce ResourceConflictResolution annotation to control the strategy for managing resources with the same name
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-11 10:23:56 +08:00
karmada-bot 3a743aaaa9
Merge pull request #1060 from mrlihanbo/FullyApplied
update FullyApplied condition after aggregating works status
2021-12-10 17:43:18 +08:00
lihanbo c07b6ce2dd update FullyApplied condition
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-10 17:16:05 +08:00
Garrybest 60c3f31897 delete scale scheduling
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-07 10:03:18 +08:00
karmada-bot 09c04490bc
Merge pull request #988 from mrlihanbo/schedule-condition
update Scheduled conditon when failed scheduling
2021-12-07 09:18:14 +08:00
RainbowMango e87a3eadea Add more comment on AsyncWorker
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-12-06 15:47:19 +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
lihanbo 435f32cc4d update Scheduled conditon when failed scheduling
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-02 17:53:53 +08:00
karmada-bot 7d10d979e0
Merge pull request #1030 from Garrybest/pr_metrics
add metrics for scheduler estimator
2021-12-02 11:14:08 +08:00
Garrybest e2e9a503b7 add metrics for scheduler estimator
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-02 10:16:28 +08:00
huangminjie 80467aea48 feature: change namespace filter rule
some namespaces(like karmada-test, karmada-dev, etc.) will be propagated

Signed-off-by: huangminjie <minjie.huang@daocloud.io>
2021-12-01 16:19:11 +08:00
guoyao 5bf9e4094a add ut for AggregateErrors
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-27 17:14:57 +08:00
karmada-bot ce7d278977
Merge pull request #932 from mrlihanbo/cluster_status_condition
add conditions for cluster status
2021-11-26 14:37:06 +08:00
karmada-bot 84d4a4592d
Merge pull request #1034 from Garrybest/pr_job_status
add startTime and completionTime in job status
2021-11-26 11:30:04 +08:00
guoyao 91e3b53fd0 add unit test for functions of generating names
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-26 08:34:46 +08:00
Garrybest 5195d93ec4 add startTime and completionTime in job status
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-25 21:50:36 +08:00
karmada-bot ba5b44aee2
Merge pull request #1029 from iawia002/cluster-api-v1beta1
Support for the cluster-api v1beta1 version
2021-11-25 21:32:03 +08:00
lihanbo 2131ec5189 add conditions for cluster status
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-25 21:23:15 +08:00
Garrybest d45dcbf7ab optimize ResourceList
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-25 20:37:10 +08:00
karmada-bot ac2e59d8fb
Merge pull request #1006 from XiShanYongYe-Chang/detet-todo-logic
delete the TODO logic with binding labels
2021-11-25 17:53:03 +08:00
Xinzhao Xu 29f10db1dd Support for the cluster-api v1beta1 version
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-25 16:58:14 +08:00
karmada-bot b35d2e0f5a
Merge pull request #1024 from eightzero/dev
ignore configv1alpha1 group in detector
2021-11-25 15:29:03 +08:00
eightzero a5c8aa905e ignore configv1alpha1 group in detector
Signed-off-by: eightzero <ieightzero@icloud.com>
2021-11-25 10:18:37 +08:00
karmada-bot ccf2762400
Merge pull request #990 from iawia002/rm-k8s-dep
Lift some utils code from the k/k repo to avoid relying on it
2021-11-24 20:18:17 +08:00
changzhen 4e6400ade3 add config v1alpha1 schemes to gclient
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-24 15:20:24 +08:00
pigletfly 42ed6dfbc4 Fix generate rb key
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-11-24 10:25:29 +08:00
karmada-bot ff928761fd
Merge pull request #1003 from JarHMJ/fix/fix_name_hash
fix: fix GenerateBindingReferenceKey bug
2021-11-24 09:23:12 +08:00
huangminjie f30c2afee0 fix: fix GenerateBindingReferenceKey bug
Signed-off-by: huangminjie <minjie.huang@daocloud.io>
2021-11-23 19:47:28 +08:00
lihanbo df925c7171 support update object annotations
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-23 19:10:47 +08:00
changzhen 033de2de9f delete the TODO logic with binding labels
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-22 17:41:55 +08:00
RainbowMango a6f5dea67b Fix panic: invalid memory address or nil pointer dereference
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-20 20:45:22 +08:00
changzhen 7224234a74 Update resourece interpreter pkg/file name and variable/parameter/comment naming
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-20 17:48:00 +08:00
Kevin Wang f8af0363f6 Update resource interpreter api (aka. explorewebhook)
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-11-20 14:59:52 +08:00
Xinzhao Xu 0859129968 Lift some utils code from the k/k repo to avoid relying on it
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-19 16:36:41 +08:00
guoyao 81f6cb939b add retaining webhook
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-18 16:08:39 +08:00
karmada-bot 876631801c
Merge pull request #965 from wzshiming/fix/get-secret
pkg/util/secret: Fix GetTargetSecret
2021-11-17 14:59:03 +08:00
RainbowMango 584bf4d256 Set background cacscade deletion by default
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-16 11:39:57 +08:00
Shiming Zhang 6c7cb9b51e pkg/util/secret: Fix GetTargetSecret
Signed-off-by: Shiming Zhang <wzshiming@foxmail.com>
2021-11-15 15:51:49 +08:00
guoyao 94227b33b4 add more validations for cluster name
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-15 15:08:16 +08:00
guoyao ae34e4d1b8 unify IsNodeReady function
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-15 11:35:03 +08:00
changzhen d81f6e81ce hooks matching and sending requests to webhook
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-15 10:34:18 +08:00
RainbowMango 9e7fde6ab9 Setup custom resource explorer
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-12 17:11:24 +08:00
Garrybest 47a6823afa support job scheduling
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-09 14:29:34 +08:00
guoyao b22da790ea cleanup some codes
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-08 20:43:39 +08:00
karmada-bot d0a7a9ac7e
Merge pull request #933 from gy95/continue
remove orphan works failed cannot print successful logs
2021-11-08 16:19:22 +08:00
karmada-bot ccf78c1c70
Merge pull request #891 from Garrybest/pr_dynamic_weight
divide replicas weighted by AvailableReplicas
2021-11-08 15:41:55 +08:00
guoyao fc578cc496 remove orphan works failed cannot print successful logs
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-08 14:55:26 +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
Garrybest a29f3f7a50 divide replicas by dynamic weight
Signed-off-by: Garrybest <garrybest@foxmail.com>
Co-authored-by: junqian <junqian@tencent.com>
2021-11-06 22:38:57 +08:00
dddddai 795ad5bd40 skip propagating events by default
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-11-06 19:58:04 +08:00
pigletfly dac00692e7 refactor object watcher interface
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-11-05 23:26:51 +08:00
lihanbo ac3878ec03 add Timeout in WaitForCacheSync
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-05 13:50:30 +08:00
Garrybest a3e1b597c0 add object reference when calling gRPC
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-02 22:25:12 +08:00
Leo f698881e1f
fix: stop informer manager Instance once
Signed-off-by: yvoilee <yvoilee@gmail.com>
2021-10-29 18:20:35 +08:00
wawa0210 597abca96e
Delete EndpointSlice should consider the situation that it no longer exists
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-10-25 21:18:42 +08:00
changzhen 27558d5a51 move detector directory from pkg/util/ to pkg/
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-10-20 10:21:08 +08:00
karmada-bot 41f0cb136a
Merge pull request #827 from ctripcloud/update-log
add cluster message in objectwatcher logs for convenient debugging
2021-10-18 19:24:01 +08:00
jingxueli 111999fa30 add cluster message in objectwatcher logs for convenient debugging
Signed-off-by: jingxueli <jingxueli@trip.com>
2021-10-18 17:48:21 +08:00
karmada-bot d2af1e1991
Merge pull request #823 from dddddai/sched-condition
Propose a Scheduled condition for RB/CRB
2021-10-18 15:15:01 +08:00
dddddai eaea5c608b add scheduled condition for binding
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-10-18 11:43:40 +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
karmada-bot cceed5c9f8
Merge pull request #791 from dddddai/from-cache
Fetch control plane workload from cache instead of api server
2021-10-15 17:55:57 +08:00