Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubecm ls filter #11

Closed
cynial opened this issue Oct 26, 2020 · 5 comments
Closed

kubecm ls filter #11

cynial opened this issue Oct 26, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request kind/feature ategorizes issue or PR as related to a new feature.

Comments

@cynial
Copy link

cynial commented Oct 26, 2020

不知道能不能支持,根据自定义的 filter ,过滤某些集群?

@sunny0826 sunny0826 self-assigned this Nov 17, 2020
@sunny0826 sunny0826 added the enhancement New feature or request label Nov 17, 2020
@sunny0826
Copy link
Owner

好主意,我考虑一下怎么实现

@sunny0826
Copy link
Owner

@cynial 能详细描述下您希望使用什么样的过滤规则吗?如dev-开头,或 -test后缀?

@cynial
Copy link
Author

cynial commented Dec 8, 2020

我这边是希望能过滤 NAME 字段,比如我现在管理着 30 多个集群,我想看:

1、部署在深圳 shenzhen 的有哪些集群
2、测试集群 test 分别在哪些地方部署了

NAME
w-test-shenzhen-mz
w-test-tianjin-mz
w-test-beijing-mz
w-prod-tianjin-mz
w-prod-beijing-mz

@sunny0826
Copy link
Owner

只要包含该关键字,如:

$ kubecm ls --filter shenzhen
NAME
w-test-shenzhen-mz

@sunny0826 sunny0826 added the kind/feature ategorizes issue or PR as related to a new feature. label Dec 8, 2020
@sunny0826
Copy link
Owner

sunny0826 commented Dec 11, 2020

this feature is released, please use v0.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kind/feature ategorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants