Commit Graph

725 Commits

Author SHA1 Message Date
Mohammed Affan 6a07cca040 Migrate deprecated wait.poll
Signed-off-by: Mohammed Affan <mohammed.affan.727@gmail.com>
2024-05-22 11:19:51 +08:00
karmada-bot 2ddebf1c64
Merge pull request #4960 from chaosi-zju/files
cleanup: grant the correct permissions when creating a file
2024-05-22 09:36:18 +08:00
chaosi-zju 52cd7716e6 cleanup: adjust log print content when delete token by karmadactl.
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-21 16:10:26 +08:00
chaosi-zju 472da38a6c cleanup: grant the correct permissions when creating a file
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-21 09:30:38 +08:00
chaosi-zju dee30c821b upgrade rsa key size from 2048 to 3072
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-21 09:18:30 +08:00
karmada-bot 774a2b1366
Merge pull request #4934 from zhzhuang-zju/G107
silence gosec warning G107
2024-05-20 10:05:23 +08:00
chaosi-zju be3874a938 cleanup: replace text/template with html/template
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-17 15:37:55 +08:00
warjiang 59e88f1a38 clean: remove duplicate util reference
Signed-off-by: warjiang <1096409085@qq.com>
2024-05-17 01:57:04 +08:00
zhzhuang-zju 9960261c17 silence gosec warning G107
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-05-13 10:09:14 +08:00
zhzhuang-zju 309c67701b bump golangci to v1.58.0
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-05-13 09:32:13 +08:00
RainbowMango d4b610cad6 fix lint issues
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-05-06 11:36:54 +08:00
RainbowMango 8cf31bfc37 Adopt Kubernetes #121390: remove etcd page
Adopt Kubernetes #118653, introduce VolumeResourceRequirements
Remove APIPriorityAndFairness feature gates from
karmada-aggregated-apiserver.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-05-06 11:36:54 +08:00
karmada-bot f33f3f8bf3
Merge pull request #4474 from jwcesign/add-uid
feat: add permanent id label to pp/cpp/rb/crb/work resources
2024-04-30 11:39:24 +08:00
whitewindmills 8328054439 Deprecate name/namespace labels of work
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-04-28 15:22:44 +08:00
karmada-bot 8f9a624620
Merge pull request #4828 from liangyuanpeng/refactor_karmadactl_deploy
karmadactl: add common code for create and wait deployments.
2024-04-26 09:56:21 +08:00
Rohit Satya 71e203ea33 etcd:Update version to 3.5.13
Signed-off-by: Rohit Satya <work.rohitsatya@gmail.com>
2024-04-25 09:52:24 +05:30
Lan Liang e8aefe0aa8 karmadactl: add common code for create and wait deployments.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-04-17 11:41:13 +00:00
karmada-bot a2b1612e20
Merge pull request #4656 from chaosi-zju/haier
fix: avoid delete the key with empty value in object (lua table)
2024-04-16 11:30:12 +08:00
jwcesign 6a54a9abb4 feat: add permanent id label to pp/cpp/rb/crb/work resources
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-04-10 16:08:51 +08:00
changzhen 4e8252291f add image-pull-policy flag for karmada init cmd
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-04-10 11:23:52 +08:00
chaosi-zju e2babc3d24 fix: avoid delete the key with empty value in object (lua table)
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-04-07 09:44:08 +08:00
Lan Liang 017f0fc212 Update karmada-apiserve and kube-controller-manager to v1.27.11 by default.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-04-01 13:51:00 +00:00
karmada-bot 1c0be4f41f
Merge pull request #4717 from liangyuanpeng/errlog_kubeconfig
Add more detail log for load karmada-host config and karmada-apiserver config.
2024-03-19 10:19:30 +08:00
Zechun Chen b8f9209574 fix typo for karmada
Signed-off-by: Zechun Chen <zechun.chen@daocloud.io>
2024-03-18 15:39:16 +08:00
Lan Liang 7f152eda0d Add more detail log for load karmada-host config and karmada-apiserver config.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-03-17 12:47:15 +00:00
Fish-pro c401a5d9f1 bump alpine to 3.19.1 to address CVE concerns
Signed-off-by: Zechun Chen <zechun.chen@daocloud.io>
2024-01-31 20:30:25 +08:00
RainbowMango 67fc70d5ac Nominate Yuan peng, Zhuang, and Yan feng as new reviewers
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-01-23 15:05:28 +08:00
huangyanfeng 0e46397086 pull mode register add check cluster exists
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2024-01-22 19:43:48 +08:00
Mohammed Affan 970435c3d1 Add linting for unused parameters
Signed-off-by: Mohammed Affan <mohammed.affan.727@gmail.com>
2024-01-13 12:26:54 +05:30
jwcesign e36a80c86c cleanup: enable revive(blank-imports rule) checking
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-01-10 10:07:55 +08:00
jwcesign 38b2cae7e1 cleanup: enable revive(exported rule) checking
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-01-09 09:41:47 +08:00
whitewindmills 10f9fdd794 clean up deprecated codes
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-01-05 18:11:21 +08:00
Lan Liang 59cd00d942 Cleanup: enable lint of revive(superfluous-else)
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-01-02 08:35:42 +00:00
Lan Liang b90035f03f Update apiserver&controller-manager to v1.26.12
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2023-12-21 18:10:47 +08:00
karmada-bot f8cdc40591
Merge pull request #4404 from yanfeng1992/agent-leader-ns
register cluster install karmada-agent should set leader-elect-resouce-namespace
2023-12-21 16:04:17 +08:00
Zhizhen He 25a62c6c57
fix typo
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-12-17 16:12:03 +08:00
huangyanfeng c6261874d8 register cluster install karmada-agent should set leader-elect-resource-namespace
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2023-12-12 20:43:23 +08:00
zhzhuang-zju d4bc240e91 bump alpine to 3.18.5 to address CVE concerns
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-12-06 11:05:17 +08:00
jwcesign 69bb6a1134 feat: add webhook for multiclusterservice to add the permanentid
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-29 17:21:36 +08:00
karmada-bot ec3599895c
Merge pull request #4135 from zhy76/promote
feat: support promote dependent resources automatically
2023-11-23 16:53:53 +08:00
karmada-bot 4fe9dff3a8
Merge pull request #4204 from zhy76/copyright
feat: add license and verify license for code file
2023-11-22 10:23:52 +08:00
zhy76 682adff651 feat: support promote dependent resources automatically
Signed-off-by: zhy76 <958474674@qq.com>
2023-11-21 15:56:05 +08:00
karmada-bot d1598a9166
Merge pull request #4253 from zhzhuang-zju/tls-etcd
set golang's secure cipher suites as etcd's cipher suites
2023-11-20 20:36:50 +08:00
zhzhuang-zju 9b1e18bbd2 set golang's secure cipher suites as etcd's cipher suites
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-11-20 11:50:57 +08:00
RainbowMango 2f39163615 Nominate code owners
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-11-20 10:39:38 +08:00
zhy76 adef1e5974 feat: add license and verify license for code file
Signed-off-by: zhy76 <958474674@qq.com>
2023-11-16 11:11:21 +08:00
zhzhuang-zju db09a25821 add cluster flags for karmadactl top pod
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-11-14 17:36:50 +08:00
karmada-bot c3c3766054
Merge pull request #4193 from yanfeng1992/set-minversion-for-tlsconfig
set MinVersion to VersionTLS13 for tlsconfig in karmada-search and karmada-metrics-adapter
2023-11-03 14:58:36 +08:00
huangyanfeng e8a7d96e15 set MinVersion to VersionTLS13 for tlsconfig in karmada-search and karmada-metrics-adapter
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2023-10-29 18:50:54 +08:00
huangyanfeng b24b25dc3a gen certs remove ip 10.254.0.1
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2023-10-29 17:25:50 +08:00
karmada-bot f2c7d0b806
Merge pull request #4063 from chaosi-zju/operator
remove insecureSkipTLSVerify in operator
2023-10-28 10:42:31 +08:00
huangyanfeng a2e734fb59 set MinVersion to VersionTLS13 for tlsconfig in karmada-apiserver and karmada-aggregated-apiserver
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2023-10-27 15:29:52 +08:00
karmada-bot b038f1d4a5
Merge pull request #4061 from chaosi-zju/karmadactl
remove insecureSkipTLSVerify in karmadactl
2023-10-26 10:59:30 +08:00
chaosi-zju eabb38b876 remove insecureSkipTLSVerify in karmadactl
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-10-24 11:47:30 +08:00
karmada-bot 557348fea0
Merge pull request #4074 from Vacant2333/add-resource-deletion-protection-by-label
[Feat] Resource Deletion Protection
2023-10-18 11:35:23 +08:00
Vacant2333 1df2420f70 [feat] namespace deletion protection
Signed-off-by: Vacant2333 <vacant2333@gmail.com>
2023-10-17 14:54:54 +08:00
Yan-Daojiang a6797c7d62 Fix incorrect comments in unjoin command
Signed-off-by: Yan-Daojiang <yan_daojiang@163.com>
2023-10-12 10:58:24 +08:00
chaosi-zju b27da00291 remove insecureSkipTLSVerify in operator
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-09-20 19:47:20 +08:00
huangyanfeng d8a7d89782 make pull cluster to be able to register with proxy-server
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2023-09-19 11:40:05 +08:00
zhang.ming 35161ef99d make pull cluster to be able to register with zones
Signed-off-by: zhang.ming <zhang.ming@cestc.cn>
2023-09-16 09:30:00 +08:00
karmada-bot 7c96e0db54
Merge pull request #3898 from tedli/external-etcd
karmadactl init with external etcd
2023-09-04 14:28:46 +08:00
whitewindmills c8423cb237 fix spelling errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-09-04 10:22:39 +08:00
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