vmware-archive / ktx

manage kubernetes cluster configs
Apache License 2.0
135 stars 24 forks source link

Be able to see current kubeconfig #20

Closed mdaverde closed 5 years ago

mdaverde commented 5 years ago

Hello!

When I'm working with several kubeconfig files, I predominantly use ktx as my main tool to switch between them. Because I have different terminals in which I switch to different kubeconfigs, it would be neat if ktx also allowed me to know which kubeconfig my terminal is set to (I would prefer to not change my PS1).

Currently, I run echo $KUBECONFIG to determine my current kubeconfig.

For example,

➜ ktx
olympus.dev-usw2.cluster-read-only
* olympus.dev-usw2.cluster-admins
kind-config-kind

In this case, the asterisk signals my current kubeconfig.