deggja / netfetch

Kubernetes tool for scanning clusters for network policies and identifying unprotected workloads.
MIT License
407 stars 25 forks source link

Feature Request: Add a --kubeconfig parameter to give the path/name of a kubeconfig file to use #163

Closed kastl-ars closed 5 days ago

kastl-ars commented 2 months ago

Thanks for this nice tool.

One thing that I think might be helpful, especially for people working with multiple clusters:

Add a --kubeconfig parameter to the CLI that accepts the name or path of a kubeconfig file to use. Most kubernetes-related tools have such a parameter, including kubectl.

deggja commented 2 months ago

Thanks for this nice tool.

One thing that I think might be helpful, especially for people working with multiple clusters:

Add a --kubeconfig parameter to the CLI that accepts the name or path of a kubeconfig file to use. Most kubernetes-related tools have such a parameter, including kubectl.

Thanks for the request! I am sure you know, albeit a bit tedious, the app looks for an environment variable OR the default kubeconfig, meaning you can specify the kubeconfig you want to use in the env variable to accomplish the same, but I get that its one extra step.

Thanks again for trying netfetch and contributing 🚀

deggja commented 1 week ago

Hello @kastl-ars, The option to specify the path of the desired kubeconfig has been added in #202 and is included in version v0.5.4 of netfetch which was published just now.

Feel free to test and verify that it all works fine for you and close the issue when confirmed.

johanneskastl commented 4 days ago

Thanks! I'll give it a spin next week!