kubectx icon indicating copy to clipboard operation
kubectx copied to clipboard

Context switch is not working - possible clash with same context name value

Open vinibali opened this issue 5 months ago • 2 comments

Hi! I have some kubeconfigs which has the same context name inside. Even kubectl is not able identify both if these are listed in the KUBECONFIG env variable, like

KUBECONFIG=/home/user/.kube/cluster1.conf:/home/user/.kube/cluster2.conf

Is there some other way to identify the kubeconfigs with the context-cluster key? Unfortunately I couldn't rename the context, because that breaks the functionality of the config. I experience pretty much the same with kubeswitch: https://github.com/danielfoehrKn/kubeswitch/issues/137

vinibali avatar Aug 29 '24 10:08 vinibali