Commit Graph

713 Commits

Author SHA1 Message Date
lizhen6 1ad8fd311a refactor bundled to local
Signed-off-by: lizhen6 <lizhen6@360.cn>
2023-08-31 14:44:50 +08:00
karmada-bot 5135e8fea3
Merge pull request #3937 from zhy76/rbac
feat: karmadactl init: grant clusterrole admin with karamda resource permission
2023-08-25 16:28:04 +08:00
karmada-bot 4642d9e781
Merge pull request #3995 from whitewindmills/deprecated-zone-flag
feat: deprecate cluster-zone flag and introduce cluster-zones flag
2023-08-25 12:16:04 +08:00
whitewindmills d0ef3343ae deprecate cluster-zone flag and introduce cluster-zones flag
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-08-25 11:02:29 +08:00
Tanggui Bian 9607b9e807 Remove the execute permission from the directory
Signed-off-by: Tanggui Bian <softwarebtg@163.com>
2023-08-24 19:24:48 +08:00
lizhen6 9257a8d4dd external etcd, refactor based on review
Signed-off-by: lizhen6 <lizhen6@360.cn>
2023-08-17 10:27:29 +08:00
karmada-bot 27eb29cd31
Merge pull request #3910 from XiShanYongYe-Chang/karmadactl-get-without-rb-info
[karmadactl get] judge with label on the resources determine whether resource is adopted by Karmada
2023-08-16 10:43:08 +08:00
chaunceyjiang 62482f437c feat: introducing a karmada top command
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-08-15 18:34:11 +08:00
changzhen 0cf3c070aa judge with the label on the resources returned by karmadactl get command to determine whether resource is managed by Karmada
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-08-15 14:25:27 +08:00
zhy76 90b944a8f6 feat: karmadactl init: grant clusterrole admin with karamda resource permission
Signed-off-by: zhy76 <958474674@qq.com>
2023-08-15 03:01:07 +00:00
lizhen6 e0111919cc karmadactl init with external etcd
Signed-off-by: lizhen6 <lizhen6@360.cn>
2023-08-11 18:12:15 +08:00
lizhen6 6938571230 karmadactl init with external etcd
Signed-off-by: lizhen6 <lizhen6@360.cn>
2023-08-11 14:04:21 +08:00
chaosi-zju a4f8c997d1 update validate-resourceinterpretercustomization webhook timeout from 3s to 10s
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-08-07 19:38:20 +08:00
lizhen6 5f5c45f109 karmadactl init with external etcd
Signed-off-by: lizhen6 <lizhen6@360.cn>
2023-08-04 16:01:52 +08:00
karmada-bot 4488898b16
Merge pull request #3833 from liangyuanpeng/update_etcd_3.5.9
etcd:Update version to 3.5.9
2023-07-31 15:57:43 +08:00
RainbowMango 4ee4b22f05 Adopt Kubernetes breaking changes: PR 113542 which require singular names for core types
Adopt breaking change of contriller-runtime PR 2122
Adopt breaking change of contriller-runtime PR 2296
Adopt breaking change of controller-runtime PR 2139
Adopt breaking change of controller-runtime PR 2135
Adopt breaking change of Kubernetes PR 116218
Adopt breaking change of controller-runtime PR 2149
Adopt breaking change of controller-runtime PR 2150
Adopt breaking change of controller-runtime PR 2134
Adopt breaking change of controller-runtime PR 2293
Adopt breaking change of controller-runtime PR 2144
Adopt k8s feature: watch list. PR 115402
Adopt breaking change of Kubernetes PR 117102
Adopt Kubernetes change: disable staticcheck
Fix unit tests that failure due to fake-client behavior changes.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-07-29 16:47:38 +08:00
zhy76 8c25212197 feat: Add label on the namespace created by karmada
Signed-off-by: zhy76 <958474674@qq.com>
2023-07-28 06:41:50 +00:00
Lan Liang e5babfebca etcd:Update version to 3.5.9
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2023-07-25 14:51:44 +08:00
yike21 9079268ebb add validation for mcs
Signed-off-by: yike21 <yike21@qq.com>
2023-07-12 09:21:48 +08:00
karmada-bot dd010b3505
Merge pull request #3754 from chaunceyjiang/webhook
add cronfederatedhpa webhook for karmadactl and karmada-operator
2023-07-06 16:09:22 +08:00
Fish-pro 6ebf40f476 Use SetOut and/or SetErr instead SetOutput
Signed-off-by: Zechun Chen <zechun.chen@daocloud.io>
2023-07-04 17:45:26 +08:00
chaunceyjiang 913d9ce3fe add cronfederatedhpa webhook for karmadactl and karmada-operator
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-07-04 11:12:17 +08:00
chaunceyjiang fc975e8e53 feat: karmadactl adds the karmada-metrics-adapter addons.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-06-28 11:00:30 +08:00
karmada-bot e95c6050ea
Merge pull request #3665 from helen-frank/feature/karmadactlTimeout
karmadactl init add timeout flag
2023-06-20 11:33:47 +08:00
helen e6fc3eafee karmadactl init add timeout flag
Signed-off-by: helen <haitao.zhang@daocloud.io>
2023-06-20 10:23:18 +08:00
jwcesign 06efa55b46 feat: Support prerelease version parse
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-06-16 10:09:07 +08:00
karmada-bot 1251ec9d36
Merge pull request #3618 from Vacant2333/fix_typo
fix typos
2023-06-02 11:46:19 +08:00
Vacant2333 7bd2ced976 fix typos
Signed-off-by: Vacant2333 <rentian.zhou@daocloud.io>
2023-06-02 10:39:02 +08:00
Poor12 3a1464828a add hpa controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-30 17:26:02 +08:00
RainbowMango 26ca04122c Update golangci-lint to v1.52.2
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-05-22 11:22:13 +08:00
karmada-bot c6f52f1146
Merge pull request #3491 from my-git9/fix/errorex
fix error example for addons enable
2023-05-19 20:41:53 +08:00
karmada-bot 8594406e5f
Merge pull request #3398 from whitewindmills/code-cleanup
Fix inspection errors
2023-05-19 20:28:53 +08:00
whitewindmills 89295f9606 Fix inspection errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-05-17 17:06:27 +08:00
Hassan Tanveer 3e2c4408f1 Fixed typo
Signed-off-by: Hassan Tanveer <hassan.tanveer0097@gmail.com>
2023-05-15 20:47:48 +00:00
karmada-bot 5e4e707779
Merge pull request #3494 from LronDC/master
Allow user decide whether to automatically generate Propagation-policy and its name when promote
2023-05-15 10:37:49 +08:00
LronDC f9b1071c3c Add --auto-generate-propagation-policy and --propagation-policy-name options to promote command
Signed-off-by: LronDC <lun.su@daocloud.io>
2023-05-12 18:53:43 +08:00
changzhen c04fd6ad62 add validation for mci
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-05-12 15:49:50 +08:00
chaunceyjiang 77d6e665be fix: add federatedresourcequota validate config
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-05-11 18:58:37 +08:00
xin.li 42926ef1ea fix error example for addons enable
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-05-04 18:13:40 +08:00
Balaji Arun f132abfea5 Upgrade kube version
Signed-off-by: Balaji Arun <balajia@vt.edu>
2023-05-02 09:12:09 -07:00
karmada-bot 31b5088baf
Merge pull request #3326 from my-git9/feat/ignorens
feat: add --purge-namespace flags for `karmadactl deinit`, and default not delete namespace
2023-04-06 20:07:55 +08:00
karmada-bot 13ecfa5f46
Merge pull request #3345 from my-git9/feat/hub
Support specify global image registry for enable addons
2023-04-06 09:52:55 +08:00
xin.li fe6febba0d feat: add --purge-namespace flags for karmada deinit
`karmada deinit` default not delete namespace

Signed-off-by: xin.li <xin.li@daocloud.io>
2023-04-04 23:58:05 +08:00
xin.li 8adc86e7e4 feat: support specify global image registry for addons
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-04-04 09:44:47 +08:00
rayywu 4335107894 Add UT for deploy.go and cluster_condition_cache.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-04-03 17:25:33 +08:00
karmada-bot a44633eebe
Merge pull request #3292 from tedli/master
Add arg to specify cluster domain
2023-03-30 16:04:49 +08:00
lizhen6 06adeb96dc customizable cluster domain
Signed-off-by: lizhen6 <lizhen6@360.cn>
2023-03-30 14:03:54 +08:00
chaunceyjiang 7e2097f1f3 Optimize code directory structure.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-03-30 11:49:16 +08:00
lonelyCZ 59ef6279f3 Support to run karmadactl init within a pod
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2023-03-29 10:53:46 +08:00
karmada-bot d4c1918868
Merge pull request #3297 from realnumber666/add-unit-test
Add UT for deploy.go and statefulset.go
2023-03-24 19:57:46 +08:00
rayywu b7c5bc196b Add UT for deploy.go and statefulset.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-03-24 15:23:57 +08:00
karmada-bot 63cbdf3a4d
Merge pull request #3325 from my-git9/improve/output
chore: improve some format
2023-03-24 12:17:27 +08:00
xin.li 9500fced9b chore: improve some format
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-03-24 11:18:34 +08:00
lixingchenDaoCloud 2eaf3301b8 remove bootstrapKubeConfigFile error not check
Signed-off-by: lixingchenDaoCloud <captainchina_li@163.com>
2023-03-22 15:04:42 +08:00
lonelyCZ fb273dc715 Fixed unable to view the options for karmadactl addons enable/disable
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2023-03-20 22:30:58 +08:00
xin.li 662be91548 feat: add param of force for addon disable
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-03-20 10:02:16 +08:00
karmada-bot 7f5bb9dde6
Merge pull request #3221 from yanfeng1992/wait-dep-sts-rollout
check deployment statefulset rollout not use check pod ready
2023-03-16 17:39:20 +08:00
huangyanfeng fd062cecab check deployment statefulset rollout not use check pod ready
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2023-03-16 16:39:43 +08:00
yanggang e9ff441c7c
Delete redundance code for pkg/karmadactl/get/get.go
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-03-13 16:25:35 +08:00
xin.li 0065f18e28 feat: add image pull secret flags for karmadactl init
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-03-12 18:10:46 +08:00
xin.li deba6e8ff5 [UT] increase ut coverage for utils/utils.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-03-01 21:23:45 +08:00
karmada-bot ea497819f0
Merge pull request #3179 from my-git9/ut-format
[UT] Add ut for utils/format.go
2023-02-20 17:45:23 +08:00
xin.li 871b5b49b7 [UT] Add ut for utils/format.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-20 14:19:06 +08:00
lonelyCZ 680b05264a Make the validity period of cert configurable
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2023-02-20 10:55:05 +08:00
karmada-bot d21d57d3f5
Merge pull request #3155 from my-git9/ut-kubeconfig2
[UT] improve test for kubeconfig.go
2023-02-17 10:57:58 +08:00
xin.li 53a160659c [UT] improve test for kubeconfig.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-16 21:49:52 +08:00
lonelyCZ 8b67d22786 Fix UpdateOrCreateToken get secrets err handling optimization
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2023-02-15 21:26:38 +08:00
karmada-bot a9089325dc
Merge pull request #3145 from my-git9/ut-template
[UT] add ut for utils/template.go
2023-02-14 10:03:55 +08:00
xin.li b3de611707 [UT] add ut for cmdinit/kubeconfig.og
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-13 23:05:41 +08:00
xin.li 4367d8c4b3 [UT] add ut for utils/template.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-13 20:43:27 +08:00
chaunceyjiang 111f6b33e3 Replace "" with NamespaceAll.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-02-13 14:25:00 +08:00
xin.li 24cc58fcef [UT] add ut for cmdinit/cmdinit.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-09 21:42:59 +08:00
karmada-bot 57236e5ec3
Merge pull request #3134 from Fish-pro/chore/package
Clean up repeated package import
2023-02-09 17:10:52 +08:00
Fish-pro 108afef91b Clean up the problem of repeated package import
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
2023-02-09 15:58:22 +08:00
karmada-bot 59227f0d4a
Merge pull request #3117 from my-git9/utrbac
[ut] add ut for utils/rbac.go
2023-02-08 16:34:50 +08:00
Fish-pro 05c759a19a Use http constants instead of string
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
2023-02-07 15:51:00 +08:00
xin.li 374d68a663 [ut] add ut for utils/rbac.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-07 10:34:27 +08:00
karmada-bot 8a694133c4
Merge pull request #3111 from my-git9/cleanup/nodeut
[ut] improve ut coverage for node.go
2023-02-06 14:32:50 +08:00
xin.li e8a6e50a84 [ut] improve ut coverage for node.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-05 18:07:59 +08:00
xin.li c331bc5a4c [UT] add ut for kubernetes/secret.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-05 12:48:14 +08:00
karmada-bot 43c1a8c753
Merge pull request #3080 from RainbowMango/pr_update_k8s
Update Kubenetes dependencies to v1.26.1
2023-02-01 11:42:22 +08:00
jwcesign 07d220781c Add ut for service.go
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-01-31 16:37:43 +08:00
RainbowMango a1e8f164cb adopt static check issues
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-31 09:22:41 +08:00
RainbowMango 68828d0a48 Adopt kubectl describe command refactor
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-29 18:08:19 +08:00
jwcesign 3d8cce7473 Add ut for node.go
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-01-29 10:14:13 +08:00
jwcesign b388d30908 Add ut for deployments.go
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-01-18 16:38:44 +08:00
karmada-bot 051a0b35ee
Merge pull request #3041 from helen-frank/feature/UseUtilsEnvGetString
use k8s.io/utils/env GetString get env
2023-01-13 10:15:05 +08:00
helen cc759c6706 when UpdateOrCreateToken get secrets, if the error is not a NotFound, the error is thrown in time.
Signed-off-by: helen <haitao.zhang@daocloud.io>
2023-01-12 20:58:49 +08:00
helen d9aca2f458 use k8s.io/utils/env GetString get env
Signed-off-by: helen <haitao.zhang@daocloud.io>
2023-01-11 01:14:25 +08:00
karmada-bot 07bb65bfe7
Merge pull request #2831 from ikaven1024/interpret-ctl-edit
add edit mode for karmadactl interpreter command
2023-01-10 11:15:03 +08:00
Fish-pro 92c0f9c962 Use errors.Is to check for a specific error
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
2023-01-03 09:44:51 +08:00
yingjinhui f161a2ab5d add edit mode for interpret command
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-12-30 18:22:40 +08:00
chen zechun 83d43235e8 Uniform error log output starts with uppercase
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-12-28 19:12:36 +08:00
karmada-bot c8954de2b0
Merge pull request #2956 from helen-frank/feature/joinUseCurrentContext
Karmadactl join: default use current context
2022-12-23 16:32:48 +08:00
jwcesign c1747284ef Grant karmada-agent permission to access resourceinterpretercustomizations
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-12-21 12:24:30 +08:00
helen c47b53648b Karmadactl join: default use current context
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-12-16 16:49:17 +08:00
karmada-bot 9b626c0f01
Merge pull request #2840 from helen-frank/feature/AddKubeVersion
introduce kube-image-tag flag to karmadactl init
2022-12-16 15:21:43 +08:00
helen 5eaf574d4b introduce --kube-version flag to karmadactl init
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-12-15 10:51:43 +08:00
karmada-bot e47d6cb71b
Merge pull request #2949 from yanfeng1992/fixbug-unjoin-wait
CommandUnjoinOption wait must be a positive duration
2022-12-14 14:09:22 +08:00
huangyanfeng 17f105de05 CommandUnjoinOption wait must be a positive duration
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2022-12-12 17:43:48 +08:00
kingkonghong 3d40d6cf26 Remove duplicate RBAC permission configurations
Signed-off-by: kingkonghong <jayfantasyhjh@gmail.com>
2022-12-09 18:13:12 +08:00
karmada-bot efb50ade80
Merge pull request #2916 from chaunceyjiang/resourceinterpretercustomizations
fix resourceinterpretercustomizations webhook
2022-12-08 16:51:30 +08:00
chaunceyjiang 2aa025da76 fix resourceinterpretercustomizations webhook
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-12-07 18:05:55 +08:00
hejunhua 406cce3de6 fix that validating for resourceinterpreterwebhookconfigurations does not work
Signed-off-by: hejunhua <hejunhua@cestc.cn>
2022-12-07 17:54:04 +08:00
karmada-bot e6ba531a73
Merge pull request #2881 from ikaven1024/ut-interpret
[UT] add ut for interpret command
2022-12-07 10:29:18 +08:00
yingjinhui 36bc23183b ut for interpret command
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-12-06 12:30:44 +08:00
karmada-bot ad50c02bf3
Merge pull request #2903 from Fish-pro/fix/typo
Modify the error log output
2022-12-05 20:51:16 +08:00
chen zechun 7b64cc5e4e Correct the typos
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-12-05 18:27:28 +08:00
lonelyCZ f6721c4936 Fix that karmada-agent don't have permission to delete work resources
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-12-05 16:23:13 +08:00
karmada-bot 2224d1e700
Merge pull request #2882 from Zhuzhenghao/registry.k8s.io
Move to registry.k8s.io
2022-12-01 15:08:03 +08:00
chen zechun 3c80772667 Modify error comparison
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-11-30 21:02:59 +08:00
RainbowMango 873cd9f3e6 Nominate resource interpreter owners
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-11-30 18:03:13 +08:00
zhuzhenghao 915b1857c9 Move to registry.k8s.io
Signed-off-by: zhuzhenghao <zhenghao.zhu@daocloud.io>
2022-11-29 18:55:22 +08:00
karmada-bot 3f21fc1ab4
Merge pull request #2755 from chaunceyjiang/resourceInterpreter
Implement ResourceInterpreterCustomization ValidatingAdmission
2022-11-28 20:42:17 +08:00
jwcesign fe76107d4f Evolution failover to beta version
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-11-28 18:38:44 +08:00
chaunceyjiang 0c16431a51 Implement ResourceInterpreterCustomization ValidatingAdmission
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-11-28 18:30:43 +08:00
karmada-bot eb3763c201
Merge pull request #2824 from ikaven1024/interpret-ctl-execute
add execute mod for interpret command
2022-11-28 15:21:10 +08:00
yingjinhui 4a37e9ce91 add execute mode for karmadactl interpret subcommand
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-11-28 14:26:36 +08:00
karmada-bot 1975a145d0
Merge pull request #2682 from jwcesign/ut-v3
ut:add ut for token.go
2022-11-28 10:06:11 +08:00
jwcesign 92cfe28c3e ut:add ut for token.go
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-11-26 16:52:59 +08:00
karmada-bot 80f3778908
Merge pull request #2867 from chaunceyjiang/painc
fix karmadactl interpret panic
2022-11-25 15:51:09 +08:00
chaunceyjiang 2deab7877f fix karmadactl interpret panic
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-11-24 22:06:00 +08:00
lonelyCZ d398d630f4 Fix karmadactl register failed to read kubeconfig file
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-11-24 14:35:14 +08:00
karmada-bot 63a67d7cbd
Merge pull request #2825 from jwcesign/code-review-fix
Add more logs and delete some redundant code
2022-11-24 14:28:07 +08:00
jwcesign 2c3141980e Add more logs and delete some redundant code
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-11-23 16:12:13 +08:00
karmada-bot 23db2ac9d6
Merge pull request #2847 from RainbowMango/pr_kube_dep_125
Update Kubernetes dependencies to v1.25.4
2022-11-23 11:11:08 +08:00
RainbowMango 37ba914420 quick fix for StandardStorage interface extension
quick fix for kubectl apply options validation

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-11-23 09:52:48 +08:00
karmada-bot 9da3e184f9
Merge pull request #2832 from Songjoy/fix-karmada
karmadactl register add args check
2022-11-22 16:19:06 +08:00
宋文杰 5185b865f0 karmadactl register add args check
Signed-off-by: 宋文杰 <wenjie.song@daocloud.io>
2022-11-22 09:57:17 +08:00
karmada-bot 9605609168
Merge pull request #2750 from ikaven1024/inpreter-ctl
add interpret command
2022-11-22 09:54:05 +08:00
yingjinhui 81b2596ec1 add karmadactl interpret subcommand
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-11-21 20:18:35 +08:00
karmada-bot f7cac365d7
Merge pull request #2826 from lonelyCZ/pr-improve-karmadactl-description
Improve karmadactl command description
2022-11-21 10:33:04 +08:00
cleverhu e1e1616197 unify namespace and name style
Signed-off-by: cleverhu <shouping.hu@daocloud.io>
2022-11-19 23:42:01 +08:00
lonelyCZ a239d538d1 Fix MutatingWebhookConfig and ValidateWebhookConfig aren't updated
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-11-18 20:30:20 +08:00
lonelyCZ 02fd98a4c1 Improve karmadactl command description
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-11-18 10:00:32 +08:00
cleverhu 47117a27c1 optimize initAPIService
Signed-off-by: cleverhu <shouping.hu@daocloud.io>
2022-11-17 14:39:36 +08:00
karmada-bot 9a4a6684c0
Merge pull request #2655 from helen-frank/feature/karmada-image-registry
introduce `--private-image-registry` flag to `karmadactl init`
2022-11-17 11:31:11 +08:00
karmada-bot 5d57de320e
Merge pull request #2817 from carlory/add-probe
karmadactl: add liveness probe into kube-controller-manager
2022-11-17 11:03:30 +08:00
helen d4f2104b3b introduce --private-image-registry flag to karmadactl init
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-11-17 09:56:28 +08:00
karmada-bot 06ca219b2b
Merge pull request #2787 from helen-frank/feature/KarmadactlGetAddValidateCluster
karmadactl get: add validate cluster exist
2022-11-16 23:25:00 +08:00
helen 39baa63c7c karmadactl get: add validate cluster exist
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-11-16 18:31:13 +08:00
carlory d8246db213 karmadactl: add liveness probe into kube-controller-manager
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-11-16 17:51:01 +08:00
karmada-bot a16710a94e
Merge pull request #2790 from lonelyCZ/pr-fix-idempotency
Fix some call errors of `idempotency.go`
2022-11-16 15:23:59 +08:00
karmada-bot cf2faa2ee3
Merge pull request #2785 from wuyingjun-lucky/addons_owns
Put wuyingjun-lucky onto karmadactl addons owner list
2022-11-16 14:09:04 +08:00
lonelyCZ 3dd4f3a97b Fix some call errors of idempotency.go
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-11-16 11:22:40 +08:00
karmada-bot ff7d1a9e15
Merge pull request #2791 from helen-frank/feature/UseIdempotency
Karmadactl init use idempotency acceleration
2022-11-16 10:31:26 +08:00
karmada-bot d653b7aa21
Merge pull request #2795 from jwcesign/use-image-in-docker
Download images from dockerhub by default
2022-11-15 14:42:25 +08:00
cleverhu 136429ed04 fix etcd sts name hardcode
Signed-off-by: cleverhu <shouping.hu@daocloud.io>
2022-11-14 19:25:29 +08:00
helen 3950562360 Karmadactl init use idempotency acceleration
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-11-14 18:10:26 +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 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 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
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
cleverhu 9b1baeb1d7 fix namespace already exist
Signed-off-by: cleverhu <shouping.hu@daocloud.io>
2022-11-09 10:15:52 +08:00
helen 7273a58f64 karmadactl uncordon add dryrun
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-11-08 23:35:05 +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 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
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
宋文杰 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
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 f32741e13f
Merge pull request #2724 from lonelyCZ/pr-karmadactl-util-idempotency
Fix and unify `CreateOrUpdateXXX` functions for karmadactl
2022-11-02 11:32:25 +08:00
lonelyCZ 0b535a4d12 Fix and unify CreateOrUpdateXXX functions for karmadactl
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-11-01 20:50:33 +08:00
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
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
wlp1153468871 bb0ba44e71 fix error description
Signed-off-by: wlp1153468871 <luping.wei@daocloud.io>
2022-10-28 18:55:16 +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
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
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
lonelyCZ b2d3bbdf39 karmadactl token uses factory to access cluster
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-10-21 22:20: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
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
Poor12 1414d7b9ba add gen-docs
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-10-20 15:35:46 +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 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
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 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
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
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
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
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
wlp1153468871 0dbb8f57b0 cleanup
Signed-off-by: wlp1153468871 <luping.wei@daocloud.io>
2022-09-30 10:09:38 +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
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
wuyingjun 56afd0b493 introduce karmada-apiserver-advertise-address
Signed-off-by: wuyingjun <wuyingjun_yewu@cmss.chinamobile.com>
2022-09-23 16:47:04 +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
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
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
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
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 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
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
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
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
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
lonelyCZ a4a612e9bb Optimize karmadactl init to output example
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-08-23 19:28:41 +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
karmada-bot d1150abbb9
Merge pull request #2399 from lonelyCZ/pr-karmadactl-token
Implement karmadactl token command to manage bootstrap tokens
2022-08-23 12:41:50 +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
lonelyCZ 59c17d911f Set the required RBAC to enable the certificate signing request
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-08-22 15:42:54 +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 303d4652ef
Merge pull request #2312 from lonelyCZ/pr-cluster-info
Set open cluster-info to distribute root CA certificates
2022-08-19 10:56:46 +08:00
lonelyCZ 37247f6081 Set open cluster-info to distribute root CA certificates
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-08-17 14:39:29 +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
lonelyCZ 818a9e3368 Standardize the generation of certificates for karmadactl init
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-08-16 15:35:03 +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
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 6f4b24a26d
Merge pull request #1653 from Poor12/add-desheduler
Add warnings when config cluster-namespace as karmada-system
2022-08-09 18:50:08 +08:00
karmada-bot 6dee3c50eb
Merge pull request #2262 from wlp1153468871/wlp
use kubectl describe to implement karmadactl describe
2022-08-09 10:08:07 +08:00
karmada-bot 8c6a357a43
Merge pull request #2269 from zhuwint/devctl
Adjust the order of kubeconfig loadingRules
2022-08-05 16:45: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
karmada-bot a24effba96
Merge pull request #2310 from wuyingjun-lucky/karmada_addon_owners
Put wuyingjun-lucky onto karmadactl addons owner list
2022-08-03 09:26:00 +08:00
karmada-bot 65757bf124
Merge pull request #2205 from my-git9/apply2
fix karmadactl apply help
2022-08-02 19:21:58 +08:00