Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make sure `kanctl` honors `KUBECONFIG` env and kubeconfig dir kanctl in current implentation create kubeclient using `inClusterConfig` it doesn't check if the `KUBECONFIG` env var is set or config file is available at default location. This has resulted into problem for some of the users. This PR makes the change to prioritise creating kubeclient in below order - KUBECONFIG env var - kubeconfig file at deafult location `~/.kube/config` - Use `inClusterConfig` * Address review comments Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information