Commit Graph

17 Commits

Author SHA1 Message Date
zhzhuang-zju a684edd354 Implementing autocompletion for karmadactl
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-09-20 09:42:40 +08:00
zhzhuang-zju 4a2dc3d935 fix: command create cannot specify the namespace
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-09-10 10:23:09 +08:00
ahorine 5d2cf3ef7e feat: Added 's' shorthand to operation-scope flags
The operation-scope flag gets used a lot when examining resources on
member clusters. The 's' shorthand was added to improve user QoL.

Signed-off-by: ahorine <allen.horine@gmail.com>
2024-09-04 16:52:46 -04:00
hulizhe 99ef7a3b59 enhance karmadactl get command
Signed-off-by: hulizhe <pompeii.hu@gmail.com>
2024-08-19 10:16:46 +08:00
Lan Liang ed0f26c328 cleanup pointer, use ptr.Toto obtain a pointer, ptr.Deref to dereference a pointer.
The new k8s.io/utils/ptr package provides generic wrapper functions,
which can be used instead of type-specific pointer wrapper functions.
This replaces the latter with the former, and migrates other uses of
the deprecated pointer package to ptr in affacted files.

See kubernetes/utils#283 for details.

Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-05-28 05:32:33 +00:00
whitewindmills 10f9fdd794 clean up deprecated codes
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-01-05 18:11:21 +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
whitewindmills c8423cb237 fix spelling errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-09-04 10:22:39 +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
whitewindmills 89295f9606 Fix inspection errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-05-17 17:06:27 +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
chaunceyjiang 111f6b33e3 Replace "" with NamespaceAll.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-02-13 14:25:00 +08:00
RainbowMango a1e8f164cb adopt static check issues
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-31 09:22:41 +08:00
lonelyCZ 02fd98a4c1 Improve karmadactl command description
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2022-11-18 10:00:32 +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
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