Commit Graph

467 Commits

Author SHA1 Message Date
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