Commit Graph

1873 Commits

Author SHA1 Message Date
karmada-bot aeac17b77d
Merge pull request #2793 from helen-frank/feature/OptimizationParseIP
optimize ParseIP
2022-11-14 16:27:01 +08:00
helen 6fcd98264f optimize ParseIP
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-11-14 15:06:10 +08:00
jwcesign 6fbcf8cf9d Change repo to dockerhub
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-11-14 11:30:02 +08:00
karmada-bot bc7b298c40
Merge pull request #2761 from ikaven1024/pr-mem-clientset
refactor util.BuildClusterConfig
2022-11-14 09:42:57 +08:00
karmada-bot 25abf99991
Merge pull request #2505 from cleverhu/fix-namespace-already-exist
fix namespace already exist
2022-11-13 20:16:57 +08:00
wuyingjun 2c75928c80 put wuyingjun-lucky onto karmadactl addons owner list
Signed-off-by: wuyingjun <wuyingjun_yewu@cmss.chinamobile.com>
2022-11-13 12:02:10 +08:00
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
karmada-bot 2a53cf8a4f
Merge pull request #2662 from jwcesign/add-ut-v2
UT: add ut for rbac.go and webhook_configuration.go
2022-10-20 20:15:33 +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
jwcesign d5e7a7fe7c UT: add ut for rbac.go and webhook_configuration.go
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-10-20 17:33:42 +08:00
karmada-bot 69829f677c
Merge pull request #2561 from Poor12/gen-docs
Add gen-docs scripts
2022-10-20 16:54:14 +08:00
Poor12 5836639f69 add metrics_recorder for scheduler framework
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-10-20 16:35:11 +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
yingjinhui b7554264ed add feature gate for search and proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-20 15:10:31 +08:00
karmada-bot 900a1bb043
Merge pull request #2651 from RainbowMango/pr_cleanup_customize_interpreter
cleanup kubeconfig parameter from customized interpreter
2022-10-20 09:08:15 +08:00
karmada-bot 7aa94c5be9
Merge pull request #2653 from chaunceyjiang/reviewer
Request to be a Reviewer of Karmada community
2022-10-19 12:19:14 +08:00
chaunceyjiang f865e5542c Put chaunceyjiang onto the controllers and resourceinterpreter reviewers list
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-10-19 09:47:04 +08:00
karmada-bot eb0c6552df
Merge pull request #2639 from RainbowMango/pr_resourceinterpreter_customization_api
Add configurable resource interpreter API
2022-10-18 17:05:14 +08:00
RainbowMango f5d3d013e6 remove kubeconfig parameter from customized interpreter
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-10-18 16:59:57 +08:00
RainbowMango bb32de49d0 Add configurable resource interpreter
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-10-18 15:14:21 +08:00
calvin0327 01948be8d7 karmadactl are compatible with v1.24 master node label
Signed-off-by: calvin0327 <wen.chen@daocloud.io>
2022-10-18 11:00:13 +08:00
karmada-bot 141690eb9b
Merge pull request #2645 from mathlsj/snapshotNil
Fix clusterInfoSnapshot may be nil it will caused painc
2022-10-18 09:47:12 +08:00
karmada-bot a0ca636508
Merge pull request #2646 from lixingchenDaoCloud/override-descriptions-wrong
The OverriderOperator description does not match the actual function
2022-10-18 09:35:30 +08:00
mathlsj 4c39d8deec Fix clusterInfoSnapshot may be nil it will caused painc
Signed-off-by: mathlsj <mathlsj@outlook.com>
2022-10-17 22:26:33 +08:00
lixingchenDaoCloud 233430c311 The OverriderOperator description does not match the actual functions
Signed-off-by: lixingchenDaoCloud <captainchina_li@163.com>
2022-10-17 21:31:01 +08:00
karmada-bot 93817a9a58
Merge pull request #2644 from ikaven1024/pr-ut
[ut] add ut for proxy
2022-10-17 14:36:18 +08:00
karmada-bot 78fb5dbb3e
Merge pull request #2527 from carlory/fix-02
scheduler & descheduler introduce scheduler-estimator-service-prefix flag
2022-10-15 14:37:10 +08:00
yingjinhui c8ca014081 [ut] add ut for proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-14 21:59:45 +08:00
karmada-bot c0349fe429
Merge pull request #2570 from helen-frank/feature/applyFactory
karmadactl apply uses factory to access member cluster
2022-10-14 14:56:10 +08:00
karmada-bot 32a512800a
Merge pull request #2633 from ikaven1024/fix-watchmux
[fix] close result chan when watchMux stopped
2022-10-14 14:17:10 +08:00
helen 0f5754ad14 karmadactl apply uses factory to access member cluster
Signed-off-by: helen <helenfrank@protonmail.com>
2022-10-14 13:36:51 +08:00
karmada-bot 69ad816e57
Merge pull request #2631 from cmicat/test/registry
Unit Test registry.go
2022-10-13 19:28:09 +08:00
karmada-bot 3e8ed1db96
Merge pull request #2611 from helen-frank/feature/cordonFactory
karmadactl cordon&uncordon uses factory to access cluster
2022-10-13 18:56:26 +08:00
raymondmiaochaoyue 6e1c4781f5 test registry.go
Signed-off-by: raymondmiaochaoyue <raymondmiaochaoyue@didiglobal.com>
2022-10-13 18:39:01 +08:00
karmada-bot 378fb86cc4
Merge pull request #2577 from lixingchenDaoCloud/addons-enable-flags
addons enable cluster flag usage description wrong
2022-10-13 16:11:09 +08:00
karmada-bot cbc54497c7
Merge pull request #2612 from liangyuanpeng/fix_nil_map_panic
raise an error when there is no healthy nodes for etcd installation
2022-10-13 15:35:14 +08:00
lixingchenDaoCloud 4039fbf158 addons enable cluster flag usage description wrong
Signed-off-by: lixingchenDaoCloud <captainchina_li@163.com>
2022-10-13 14:56:15 +08:00
yingjinhui b57ef199c9 [fix] close result chan when watchMux stopped
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-10-13 12:25:09 +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 40eae4af39
Merge pull request #2626 from RainbowMango/pr_enhance_version_cov
Add test coverage for pkg/version/release.go
2022-10-11 11:42:07 +08:00
karmada-bot c11fb634bc
Merge pull request #2302 from Garrybest/pr_diagnosis
add scheduling diagnosis
2022-10-11 10:47:08 +08:00
karmada-bot e40bd97222
Merge pull request #2625 from RainbowMango/pr_comment_rs
Update comments for ResourceSelectors in PropagationPolicy to eliminate ambiguity
2022-10-11 10:31:08 +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
RainbowMango 996d1ec32d Add test coverage for pkg/version/release.go
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-10-10 21:05:38 +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
RainbowMango 78b872a8cf Update comments for ResourceSelectors in PropagationPolicy to set the record straight.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-10-10 12:32:07 +08:00
karmada-bot 789a44acfa
Merge pull request #2615 from RachaelLuo/fix/fix-cordon
Add args greater than one
2022-10-09 15:24:21 +08:00
yipping.luo 07b39b4b1f Add args greater than one
Signed-off-by: yipping.luo <yinping.luo@daocloud.io>

fix error message

Signed-off-by: yipping.luo <yinping.luo@daocloud.io>

rebase
2022-10-09 10:56:23 +08:00
lonelyCZ 3bcee9db07 Unify the dynamic client name for work_status_controller
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-10-09 10:25:38 +08:00
Lan Liang de06486124 Use error message of failed to find a healthy node for karmada-etcd for can not found note to scheduled etcd
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2022-10-09 10:02:30 +08:00
karmada-bot 290b4e0f3b
Merge pull request #2617 from Poor12/add-ut-for-helper
[UT]Add ut for override.go
2022-10-08 17:00:05 +08:00
Poor12 746d0fd915 add ut for override.go
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-10-08 15:30:52 +08:00
karmada-bot 75a0305a8c
Merge pull request #2608 from Fish-pro/fix-karamada
karmadactl: modify the wrong noun for karmadactl
2022-10-05 22:46:02 +08:00
karmada-bot 427f7d287a
Merge pull request #2594 from RainbowMango/pr_enable_server_timeouts
set ReadHeaderTimeout for http server
2022-10-05 22:22:03 +08:00
helen be4b3c829a karmadactl cordon&uncordon uses factory to access cluster
Signed-off-by: helen <helenfrank@protonmail.com>
2022-10-04 17:33:13 +08:00
chen zechun 828e2c945f Modify the wrong noun for karmadactl
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-10-02 22:55:41 +08:00
karmada-bot 155e37c9e5
Merge pull request #2600 from RainbowMango/pr_put_ikaven
nominate ikaven1024 as approver
2022-10-02 10:28:59 +08:00
karmada-bot 7ddf549e96
Merge pull request #2555 from Poor12/add-metrics-test
Fix the issue that incomingBindingMetrics ignores the ClusterChanged event
2022-09-30 16:50:15 +08:00
Poor12 1d282bf179 add metrics test for scheduler
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-09-30 15:39:00 +08:00
RainbowMango 50d01d3ac9 set ReadHeaderTimeout for http server
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-09-30 15:33:25 +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
wlp1153468871 0dbb8f57b0 cleanup
Signed-off-by: wlp1153468871 <luping.wei@daocloud.io>
2022-09-30 10:09:38 +08:00
RainbowMango a30b097f9d Put ikaven1024 to approver list
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-09-29 17:21:55 +08:00
Poor12 d0f76e1070 add ut for lifted codes
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-09-29 10:55:54 +08:00
karmada-bot da948ce252
Merge pull request #2554 from lixingchenDaoCloud/remove-redundancy
Remove redundant type conversions
2022-09-29 10:34:56 +08:00
karmada-bot 6941012e9e
Merge pull request #2550 from wuyingjun-lucky/m_test
introduce karmada-apiserver-advertise-address
2022-09-29 09:57:02 +08:00
lixingchenDaoCloud 1bf4fb8a86 Remove redundant type conversions
Signed-off-by: lixingchenDaoCloud <captainchina_li@163.com>
2022-09-28 23:25:59 +08:00
karmada-bot 4504030c05
Merge pull request #2574 from cmicat/feature/deloy-scheduler-estimator-in-physical-machine
Support Deploy karmada-scheduler-estimator in Physical Machine
2022-09-28 11:06:56 +08:00
karmada-bot fc196abf89
Merge pull request #2581 from my-git9/utversion5
add ut for pkg/version/version.go
2022-09-28 08:51:56 +08:00
xin.li b1315e4ab1 add ut for pkg/version/version.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2022-09-27 21:26:07 +08:00
xin.li 5cc3d9f5ab Add livenesProbe for karmada-aggregated-apiserver
Signed-off-by: xin.li <xin.li@daocloud.io>
2022-09-26 21:05:55 +08:00
raymondmiaochaoyue f4fc3d1480 1. Support deploy karmada-scheduler-estimator in physical machine.
2. remove unnecessary sudo

Signed-off-by: raymondmiaochaoyue <raymondmiaochaoyue@didiglobal.com>
2022-09-26 16:25:16 +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
wuyingjun 56afd0b493 introduce karmada-apiserver-advertise-address
Signed-off-by: wuyingjun <wuyingjun_yewu@cmss.chinamobile.com>
2022-09-23 16:47:04 +08:00
karmada-bot ed13e664d9
Merge pull request #2539 from jwcesign/master
Update karmada's k8s components to 1.25.2
2022-09-23 14:17:58 +08:00
Garrybest 92d8c69d46 stop publish duplicated event
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-09-23 10:43:59 +08:00
jwcesign d8a35e2d9a Update helm install karmada with k8s 1.25.1
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-09-23 10:37:40 +08:00
jwcesign a6d26b287d Update k8s dependency to latest version(1.25.1) for karmadactl
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-09-22 15:49:57 +08:00
karmada-bot 6102f41e81
Merge pull request #2548 from jwcesign/fix-dir-lost
karmadactl: Fix karmada-data directory not inilization isssue
2022-09-22 12:12:51 +08:00
jwcesign cdaa9344f0 Fix bugs about karmada-data dir lost
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-09-22 11:23:45 +08:00
karmada-bot 91e4e729f1
Merge pull request #2540 from helen-frank/fix/deinitHelp
`karmadactl`: Fixed options of `deinit` can not be shown issue.
2022-09-22 10:07:56 +08:00
karmada-bot ab889889fa
Merge pull request #2547 from jwcesign/fix-service-account
Delete service-account for karmada-controller-manager
2022-09-20 20:10:49 +08:00
jwcesign 6cc0d957fc Delete service-account for karmada-controller
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-09-20 14:44:17 +08:00
jeffeylan 63c189b381 Fix a typo(Registeration) in CLI #2543
Signed-off-by: jeffeylan <jeffreyliutao@didiglobal.com>
2022-09-20 14:29:37 +08:00
helen 9d9e0ec9e6 deinit help fix
Signed-off-by: helen <helenfrank@protonmail.com>
2022-09-20 00:11:12 +08:00
karmada-bot 516e09508e
Merge pull request #2524 from chaunceyjiang/sa
propagate dependencies support propagate sa
2022-09-19 19:34:48 +08:00
Garrybest b19cdb1031 add scheduling diagnosis
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-09-18 17:04:54 +08:00
carlory b987910a6b remove service accounts for karmada components except for karmada-agent
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-09-17 23:14:41 +08:00
karmada-bot 25af090405
Merge pull request #2511 from carlory/fix-karmada-controllermanager
karmada-controller-manager removes unnecessary permissions
2022-09-17 22:56:47 +08:00
chaunceyjiang 92fff3163d propagate dependencies support propagate sa
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-09-17 18:21:17 +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
karmada-bot 62a4b4391f
Merge pull request #2089 from dddddai/transform
Adopt transform func to save memory
2022-09-16 11:51:49 +08:00
karmada-bot 7a6b17f6e7
Merge pull request #2450 from duanmengkk/fix_v6_error
fix karmadactl init pending when k8s is in ipv6 mode
2022-09-16 11:34:54 +08:00
dddddai 01f37c160c adopt transform func to save memory
Signed-off-by: dddddai <dddwq@foxmail.com>
2022-09-16 10:43:05 +08:00
karmada-bot 1af078cd4a
Merge pull request #2515 from lonelyCZ/pr-agent-create-works
Fix that the ServiceExport can't be reported to control plane by karmada-agent
2022-09-15 09:01:18 +08:00
lonelyCZ 111c74191e Fix that the ServiceExport can't be reported to control plane by karmada-agent
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-09-14 17:51:27 +08:00
karmada-bot c2ac9c2e30
Merge pull request #2497 from helen-frank/fix/CmdInitEmptyArgs
cmdinit prohibit passing in additional parameters
2022-09-14 17:25:20 +08:00
helen cc55931656 Prohibit passing in additional parameters
Signed-off-by: helen <helenfrank@protonmail.com>
2022-09-14 10:42:48 +08:00
carlory c247537d66 karmada-controller-manager removes unnecessary permissions
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-09-13 21:22:06 +08:00
karmada-bot ac2e905356
Merge pull request #2471 from carlory/karmadactl-describe
karmadactl describe uses factory to access member cluster
2022-09-12 23:36:15 +08:00
karmada-bot d0149d8fa3
Merge pull request #2491 from panguicai008/fix-karmadactl-init
fix MEMBER_CLUSTER_NAME command usage
2022-09-09 18:13:11 +08:00
karmada-bot fdb13bedaa
Merge pull request #2489 from Poor12/fix-pod-lister
Fixed pod can not be collected issue when building resource summary
2022-09-09 17:15:12 +08:00
panguicai008 2dd2dfc6ec fix MEMBER_CLUSTER_NAME command usage
Signed-off-by: panguicai008 <1121906548@qq.com>
2022-09-09 14:06:33 +08:00
karmada-bot abc0f7c75b
Merge pull request #2481 from ikaven1024/pr-metrics
add native resource metrics in proxy
2022-09-09 11:19:12 +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
karmada-bot 665af6916a
Merge pull request #2483 from ikaven1024/fix-map-panic
fix concurrent map writes panic while list via proxy
2022-09-08 14:18:11 +08:00
karmada-bot 707ae14cb9
Merge pull request #2298 from carlory/karmadactl-options
disable flags in use line
2022-09-08 09:45:11 +08:00
carlory 682924be23 karmadactl describe uses factory to access member cluster
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-09-08 00:16:00 +08:00
yingjinhui 178c4ae5c1 fix concurrent map writes panic while list via proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-09-07 20:32:28 +08:00
karmada-bot 958f381a54
Merge pull request #2469 from ikaven1024/pr-cluster-anno
add cache source annotation for objects returned by proxy
2022-09-07 17:54:09 +08:00
yingjinhui 6a4674bc50 add native resource metrics in proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-09-07 16:32:06 +08:00
yingjinhui a9fcfa2ecd add cache source annotation for objects returned by proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-09-07 15:48:14 +08:00
karmada-bot 49fd8180c8
Merge pull request #2470 from carlory/karmadactl-exec
karmadactl exec uses factory to access member cluster
2022-09-06 20:37:08 +08:00
carlory fea61dad3f disable flags in use line
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-09-06 11:10:45 +08:00
xin.li 854ba1dfac improve karmada init help output
Signed-off-by: xin.li <xin.li@daocloud.io>
2022-09-05 13:22:20 +08:00
carlory d17ac13964 karmadactl exec uses factory to access member cluster
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-09-05 01:25:26 +08:00
karmada-bot fd1c0b2ebc
Merge pull request #2202 from carlory/karmadactl-factory
introduce factory interface for karmadactl
2022-09-02 15:21:02 +08:00
wuzhongjian 9982852b59 Add default path prompt for deinit to delete etcd data
Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com>
2022-09-02 09:10:29 +08:00
carlory eb31ff4740 karmadactl logs uses factory to access member cluster
Signed-off-by: carlory <baofa.fan@daocloud.io>

Co-authored-by: Hongcai Ren <renhongcai@huawei.com>
2022-09-01 22:42:24 +08:00
carlory 44e3c5e351 introduce factoryexpansion interface for karmadactl
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-09-01 09:33:54 +08:00
changzhen 8b4eb7b310 fix bug of #2447: when replicaDivisionPreference is Weighted and WeightPreference is nil
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-30 21:51:50 +08:00
karmada-bot 102ac7de39
Merge pull request #2449 from XiShanYongYe-Chang/adjust-taint-toleration-filter
[karmada-scheduler] don't consider the older cluster when filtering with taint_toleration
2022-08-30 21:50:59 +08:00
changzhen 4049bf8285 don't consider the older cluster when filter with taint_toleration
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-30 20:52:23 +08:00
karmada-bot 90a51fe76f
Merge pull request #2383 from Poor12/improve-informer
adopt transform func to reduce memory usage
2022-08-30 20:38:59 +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
duanmeng bd6b872a8d fix karmadactl init pending when k8s is in ipv6 mode
Signed-off-by: duanmeng <duanmeng_yewu@cmss.chinamobile.com>
2022-08-30 18:55:27 +08:00
karmada-bot 41615f8783
Merge pull request #2294 from chaunceyjiang/ttl
No need to propagate ttlsecondsafterfinished
2022-08-29 12:34:57 +08:00
chaunceyjiang 83c91ac909 No need to propagate ttlsecondsafterfinished
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-08-29 11:22:15 +08:00
chaunceyjiang 90ce5e004e Reschedule ResourceBinding when adding a cluster
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-08-27 11:01:25 +08:00
karmada-bot c769381c28
Merge pull request #2427 from chaunceyjiang/join_taint
Add NotReady taint to the new cluster
2022-08-27 10:07:56 +08:00
karmada-bot ba03782acd
Merge pull request #2397 from Poor12/schedule-based-on-model
Schedule based on cluster resource model
2022-08-27 09:52:55 +08:00
Poor12 6493a49874 schedule based on cluster resource model
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-08-26 17:31:46 +08:00
karmada-bot 7839539383
Merge pull request #2430 from lonelyCZ/pr-fix-agent-rbac
failed to remove cluster which is registered by karmadactl register command
2022-08-26 17:29:53 +08:00
lonelyCZ 83cd8cd9bc Fix it is error to delete member clusters
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-08-26 15:48:21 +08:00
changzhen e90edb23a5 Perceiving the health status of cluster scheduling results in graceful evictions
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-26 15:14:29 +08:00
changzhen cab85d967e fix error of reflectStatus failed when call resourceInterpreter
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-26 14:08:33 +08:00
chaunceyjiang 403c384b0f Add NotReady taint to the new cluster
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-08-26 11:49:53 +08:00
karmada-bot f70fe8a0e6
Merge pull request #2415 from Garrybest/pr_pv
retain PersistentVolume fields
2022-08-26 09:27:54 +08:00
karmada-bot 54d0a2d07a
Merge pull request #2409 from lonelyCZ/pr-init-print
Optimize `karmadactl init` to output example
2022-08-25 16:36:53 +08:00
karmada-bot bceea1635c
Merge pull request #2402 from Poor12/2367
Make changes to cluster-status-controller to adopt cluster resource models
2022-08-25 10:18:52 +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
Poor12 18c625e6a6 update cluster-status-controller to adopt cluster resource models
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-08-24 17:45:54 +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