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

Filter by namespace #112

Closed
wiardvanrij opened this issue Mar 28, 2023 · 4 comments
Closed

Filter by namespace #112

wiardvanrij opened this issue Mar 28, 2023 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@wiardvanrij
Copy link

I would like to run the analyze for a specific namespace instead of the entire cluster. --filter by namespace or just a --namespace flag would be ideal.

@AlexsJones
Copy link
Member

Great idea, we'll put this into an upcoming release

@AlexsJones AlexsJones added this to the v0.1.1 milestone Mar 28, 2023
@AlexsJones AlexsJones added the enhancement New feature or request label Mar 28, 2023
@yurymkomarov
Copy link

I think we need not only namespace, but exact target. like:

$: k8sgpt analyze --namespace $NAMESPACE --%resource_type% $RESOURCE_NAME

in case if you want to analyze pod/service/deployment/statefulset and etc.

@thschue thschue added the good first issue Good for newcomers label Mar 28, 2023
@thschue
Copy link
Contributor

thschue commented Mar 28, 2023

@yurymkomarov: Thank you for your suggestion. We already have the ability to filter for resource types (--filter). I'm curious if we should add naming patterns in there.

@AlexsJones: What do you think about this?

@AlexsJones
Copy link
Member

I think filtering namespace is an easy thing to implement and we will do it. Exact resource names could be doable.. GVR ( group version resource) but it has a maintenance over head so I am a bit reluctant unless there is an issue it solves

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: Done
Development

No branches or pull requests

4 participants