cyberark / kubeletctl

A client for kubelet
Apache License 2.0
713 stars 81 forks source link

Support KUBECONFIG environment variable #3

Closed zmedico closed 4 years ago

zmedico commented 4 years ago

The KUBECONFIG environment variable provides a convenient alternative to the kubeletctl --config flag.

g3rzi commented 4 years ago

Thanks for the contribution! :) I will test it and update here

g3rzi commented 4 years ago

It seems to work, the only issue is when someone provides a corrupted config file to KUBECONFIG or someone just want to use an anonymous request without the KUBECONFIG environment variable.

I can add it and change the panic message and maybe add flag to ignore the KUBECONFIG environment variable.