Commit Graph

1717 Commits

Author SHA1 Message Date
karmada-bot 3cbae40434
Merge pull request #2771 from wuyingjun-lucky/nil_resource_selector
Fix overridepolicy with nil resource selector could not work
2022-11-13 10:41:56 +08:00
wuyingjun 41b1cc4c8c fix overridepolicy with nil resource selector could not work
Signed-off-by: wuyingjun <wuyingjun_yewu@cmss.chinamobile.com>
2022-11-12 17:36:30 +08:00
karmada-bot 60d8bcbe72
Merge pull request #2770 from Poor12/add-policy-event
Add reflectStatusToWork and InterpretHealth event
2022-11-11 13:03:56 +08:00
Poor12 840de4fc84 add reflectStatusToWork and InterpretHealth event
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-11 12:07:49 +08:00
RainbowMango 773c7ff5d7 Introduce priority to both PropagatioonPolicy and ClusterPropagationPolicy
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-11-11 11:07:13 +08:00
karmada-bot f0d1e9b68a
Merge pull request #2664 from lonelyCZ/pr-package-karmadactl-subcmd
Package subcommands of karmadactl to make it clearer
2022-11-11 09:43:56 +08:00
lonelyCZ faa6b64cd6 Package subcommands of karmadactl to make it clearer
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-11-10 14:31:57 +08:00
karmada-bot b9612c2e83
Merge pull request #2765 from Poor12/fix-io-readall
Add limitReader to io.ReadAll
2022-11-10 11:23:20 +08:00
karmada-bot 393fb9d598
Merge pull request #2684 from helen-frank/feature/NewFactoryMerge
New Factory global flags merge function
2022-11-10 10:00:20 +08:00
changzhen 5a767f4f21 allow to update the resourceSelector of PropagationPolicy/ClusterPropagationPolicy
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-11-09 16:40:57 +08:00
karmada-bot 55b27201f9
Merge pull request #2759 from wuyingjun-lucky/clean_up
remove overridepolicy trigger on cluster_resource_binding_controller
2022-11-09 15:16:53 +08:00
karmada-bot 5c93f5ed67
Merge pull request #2763 from yanggangtony/update-desc
fix wrong description for "dry-run" option.
2022-11-09 13:53:19 +08:00
Poor12 64eff43fdb Add limitReader to io.ReadAll
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-09 12:19:13 +08:00
yanggang e040e0ef3c
fix wrong description for "dry-run" option
Signed-off-by: yanggang <gang.yang@daocloud.io>
2022-11-09 11:24:10 +08:00
helen 3e774496cf New Factory global flags merge.
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-11-09 10:43:15 +08:00
Poor12 ac6aaa31f1 add override policy event
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-09 10:25:23 +08:00
cleverhu 9b1baeb1d7 fix namespace already exist
Signed-off-by: cleverhu <shouping.hu@daocloud.io>
2022-11-09 10:15:52 +08:00
yingjinhui 2d6f491c61 refactor util.BuildClusterConfig
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-11-09 00:26:19 +08:00
helen 7273a58f64 karmadactl uncordon add dryrun
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-11-08 23:35:05 +08:00
wuyingjun 81d8fdd1a6 remove overridepolicy trigger on cluster_resource_binding_controller
Signed-off-by: wuyingjun <wuyingjun_yewu@cmss.chinamobile.com>
2022-11-08 21:39:32 +08:00
karmada-bot 6502bda995
Merge pull request #2688 from Poor12/improve-cluster-event
Add the CreateExecutionSpaceSucceed and RemoveExecutionSpaceSucceed event
2022-11-08 19:45:52 +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 abad935461
Merge pull request #2752 from lonelyCZ/pr-join-factory
karmadactl join/unjoin use factory to access control plane
2022-11-07 16:58:30 +08:00
lonelyCZ 3dc11037cc karmadactl join/unjoin use factory to access control plane
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-11-07 16:02:45 +08:00
karmada-bot c622e230a3
Merge pull request #2719 from jameszhangyukun/cache-framework
Resource Interpreter Framework cache and reorganize configurations
2022-11-07 15:11:30 +08:00
zhangyukun a3c50e7e86 Resource Interpreter Framework cache and reorganize configurations
Signed-off-by: zhangyukun <38148677+jameszhangyukun@users.noreply.github.com>
2022-11-07 13:42:00 +08:00
karmada-bot 052de02155
Merge pull request #2694 from lonelyCZ/pr-promote-factory
karmadactl promote uses factory to access cluster
2022-11-07 09:56:48 +08:00
karmada-bot 60d04d2ff6
Merge pull request #2673 from RachaelLuo/feature/CmdInitEmptyArgs
Add arges check for karmadactl deinit
2022-11-07 09:48:29 +08:00
yanggang a0a7674d26
reuse context for controller-manager base-context
Signed-off-by: yanggang <gang.yang@daocloud.io>
2022-11-05 18:51:06 +08:00
Garrybest 75a3a91994 add Garrybest as descheduler owner
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-11-05 11:03:41 +08:00
lonelyCZ 7b44385441 karmadactl promote uses factory to access cluster
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-11-04 15:18:48 +08:00
wlp1153468871 c5f64c7d2c Make event messages more readable
Signed-off-by: wlp1153468871 <luping.wei@daocloud.io>
2022-11-04 14:27:41 +08:00
karmada-bot 23a0955129
Merge pull request #2734 from XiShanYongYe-Chang/fix-2727
Disable the preemption matching of pp/cpp priority
2022-11-03 22:15:26 +08:00
changzhen bc57544df8 Disable the preemption matching of pp/cpp priority
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-11-03 20:54:13 +08:00
宋文杰 39e4b34fe8 karmadactl token:print correct register command according to the karmada-context flag
Signed-off-by: 宋文杰 <wenjie.song@daocloud.io>
2022-11-03 14:45:29 +08:00
karmada-bot 7c8f237d29
Merge pull request #2730 from lonelyCZ/pr-fix-token
Fix karmadactl token that can't set `--kubeconfig`
2022-11-03 12:13:26 +08:00
Poor12 e438cfcf75 add CreateExecutionSpaceSucceed and RemoveExecutionSpaceSucceed event
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-03 11:48:10 +08:00
calvin 965bcc11c0 optimize collectIDForClusterObjectIfNeeded error message
Signed-off-by: calvin <wen.chen@daocloud.io>
2022-11-02 15:47:32 +08:00
lonelyCZ 54ea4f4be1 Fix karmadactl token that can't set --kubeconfig
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-11-02 15:39:19 +08:00
karmada-bot f6780c2e97
Merge pull request #2725 from XiShanYongYe-Chang/add-ut-for-pp-priority
add ut for policy priority
2022-11-02 12:45:43 +08:00
changzhen d62cf8b20e add ut for policy priority
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-11-02 11:36:58 +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
karmada-bot 7be4f865e7
Merge pull request #2714 from Garrybest/pr_estimator
fix bugs of nodeMaxAvailableReplica
2022-11-02 09:34:25 +08:00
Garrybest 8e940e1006 fix bugs of nodeMaxAvailableReplica
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-11-01 21:47:29 +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
chaunceyjiang 1a6b35649c replace the ioutil by the os and io
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-11-01 14:15:26 +08:00
chaunceyjiang d9189dc455 The ImageOverrider description does not match the actual functions
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-11-01 12:34:32 +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 dc8e5d20fe
Merge pull request #2713 from cmicat/test/proxy
Fix Test Not Success in GoLand
2022-10-31 19:55:42 +08:00
raymondmiaochaoyue 5c911ee09d fix test error
Signed-off-by: raymondmiaochaoyue <raymondmiaochaoyue@didiglobal.com>
2022-10-31 17:55:30 +08:00
karmada-bot ca0f10c5ad
Merge pull request #2502 from calvin0327/compatible-with-1.24-master-label
karmadactl are compatible with v1.24 master node label
2022-10-31 17:24:23 +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
karmada-bot 7215974c8d
Merge pull request #2699 from wlp1153468871/wlp
fix wrong description for token commond
2022-10-31 09:38:41 +08:00
karmada-bot 43ca2d996c
Merge pull request #2698 from ikaven1024/ut-cluster
[ut] add ut for cluster.go, clusterlease.go, membercluster_client.go
2022-10-31 09:30:24 +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 026781f207
Merge pull request #2696 from jwcesign/add-ns-sync-labels
Add label "namespace.karmada.io/skip-auto-propagation" to control whether to propagate ns to member clusters
2022-10-29 14:59:22 +08:00
jwcesign ecfec33ec3 Add label "namespace.karmada.io/skip-auto-propagation" to control whether to propagate ns to member clusters
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-10-29 11:35:38 +08:00
karmada-bot bb5278ae60
Merge pull request #2681 from RainbowMango/pr_configurable_interpreter_api
Add configurable interpreter api
2022-10-29 10:04:21 +08:00
wlp1153468871 bb0ba44e71 fix error description
Signed-off-by: wlp1153468871 <luping.wei@daocloud.io>
2022-10-28 18:55:16 +08:00
RainbowMango b2b53cd9d8 Add configurable interpreter api
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-10-28 10:26:59 +08:00
karmada-bot f54375d974
Merge pull request #2672 from ikaven1024/ut-download
[ut] improve download from httptest
2022-10-28 09:01:22 +08:00
yingjinhui 1ba5360c94 [ut] improve download from httptest
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-27 22:42:09 +08:00
karmada-bot 5d42e82b7b
Merge pull request #2596 from lonelyCZ/pr-agent-cert-rotation
Implement auto certificate rotation function for karmada-agent
2022-10-27 14:20:20 +08:00
lonelyCZ 241f722a59 Introduce --enable-cert-rotation option to karmadactl register command
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-10-27 12:56:45 +08:00
lonelyCZ 0826fca253 Implement the certificate rotation function for karmada-agent
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-10-27 12:56:32 +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
karmada-bot 4df5e7baf7
Merge pull request #2677 from Fish-pro/karmadactl-long
Add a description for the karmadactl subcommand
2022-10-26 17:47:20 +08:00
karmada-bot f042439149
Merge pull request #2652 from cmicat/test/worker
Unit Test worker.go
2022-10-26 16:39:21 +08:00
karmada-bot a926ca4f49
Merge pull request #2650 from ikaven1024/search-featuregate
add option to disable search and proxy
2022-10-26 15:08:19 +08:00
karmada-bot 0c056c8aa6
Merge pull request #2675 from stingshen/yishen/nil_impersonator_secret_ref
`karmada-controller-manager`: Fixed the panic when cluster ImpersonatorSecretRef is nil.
2022-10-26 14:14:19 +08:00
stingshen e5d156dd61 check if cluster ImpersonatorSecretRef is nil before using it
Signed-off-by: stingshen <stingshen@126.com>
2022-10-26 12:36:28 +08:00
raymondmiaochaoyue 446ea00707 test worker.go
Signed-off-by: raymondmiaochaoyue <raymondmiaochaoyue@didiglobal.com>
2022-10-26 12:34:09 +08:00
chen zechun f01e9bfa54 Add a description for the karmadactl subcommand
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-10-25 23:46:20 +08:00
jwcesign f954b44c22 UT: import gomock to make write ut easier
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-10-25 10:34:35 +08:00
karmada-bot af4b1c6130
Merge pull request #2087 from Poor12/improve-metrics
Add metrics_recorder for scheduler framework
2022-10-24 12:00:17 +08:00
karmada-bot 5a1addf693
Merge pull request #2610 from helen-frank/feature/taintFactory
karmadactl taint uses factory to access cluster
2022-10-24 10:48:18 +08:00
yipping.luo 1097c49674 add arges check
Signed-off-by: yipping.luo <yinping.luo@daocloud.io>
2022-10-22 23:46:41 +08:00
karmada-bot 875d2ef6c1
Merge pull request #2667 from ikaven1024/ut-selector
[ut] add ut for pkg/util/selector.go
2022-10-22 16:05:16 +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
lonelyCZ b2d3bbdf39 karmadactl token uses factory to access cluster
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-10-21 22:20:15 +08:00
karmada-bot dbb24d3b62
Merge pull request #2589 from helen-frank/feature/getFactory
karmadactl get uses factory to access cluster
2022-10-21 21:51:15 +08:00
helen ffb17f623b karmadactl get uses factory to access cluster.
Signed-off-by: helen <helenfrank@protonmail.com>
2022-10-21 17:33:27 +08:00
helen 619c9b6e1e karmadactl taint uses factory to access cluster
Signed-off-by: helen <helenfrank@protonmail.com>
2022-10-21 15:12:52 +08:00
Poor12 047b2fb7ae fix a typo about events
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-10-20 20:42:23 +08:00