Commit Graph

26 Commits

Author SHA1 Message Date
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
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
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 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
chen zechun 3c80772667 Modify error comparison
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-11-30 21:02:59 +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
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
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
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
cleverhu 47117a27c1 optimize initAPIService
Signed-off-by: cleverhu <shouping.hu@daocloud.io>
2022-11-17 14:39:36 +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
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
helen 3950562360 Karmadactl init use idempotency acceleration
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-11-14 18:10:26 +08:00
cleverhu 9b1baeb1d7 fix namespace already exist
Signed-off-by: cleverhu <shouping.hu@daocloud.io>
2022-11-09 10:15:52 +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
宋文杰 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 0b535a4d12 Fix and unify CreateOrUpdateXXX functions for karmadactl
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-11-01 20:50:33 +08:00
Poor12 1414d7b9ba add gen-docs
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-10-20 15:35:46 +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
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
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