digitalocean / clusterlint

A best practices checker for Kubernetes clusters. 🤠
Apache License 2.0
547 stars 45 forks source link

Add flag namspace #77

Closed valbeat closed 4 years ago

valbeat commented 4 years ago

I want to lint in a specific namespace, like this #66 issue. I added a namespace flag to narrow the fetched objects by namespace.

valbeat commented 4 years ago

Thanks for the review!

Please let me know if my suggestion is unclear. I played around a bit with FieldSelectors to see whether it's feasible to use them, so I could provide some example code if it would be helpful.

I also want to try FieldSelectors. Please give me the example code to help me!