ahmetb / kubectx

Faster way to switch between clusters and namespaces in kubectl
https://kubectx.dev
Apache License 2.0
17.31k stars 1.24k forks source link

show all of NAME, CLUSTER and AUTHINFO in cluster selection list #401

Closed jogomu closed 11 months ago

jogomu commented 11 months ago
CURRENT   NAME                                                  CLUSTER                                               AUTHINFO                                              NAMESPACE

NAME, CLUSTER and AUTHINFO are all potentially helpful in identifying a cluster. Can we show all of these in the kubectx list please?

ahmetb commented 11 months ago

It’s not this tool’s job to copy exactly what kubectl config get-contexts does.

Furthermore, the output of kubectx is directly fed to tools like fzf (and unfortunately people script around it) so it’s neither feasible nor makes sense.

jogomu commented 6 months ago

ok, I just hacked the script to show get-contexts first above the kubectx-controlled portion of the terminal