kube-shell icon indicating copy to clipboard operation
kube-shell copied to clipboard

Support for KUBECONFIG

Open joa opened this issue 6 years ago • 6 comments

kubectl uses the KUBECONFIG environment variable. It would be great if kube-shell would honor it as well.

About KUBECONFIG: https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/#set-the-kubeconfig-environment-variable

Current behavior:

 ~> kube-shell
Kube-shell uses ~/.kube/config for server side completion. Could not find ~/.kube/config. Server side completion functionality may not work.
kube-shell> 

Expected behavior:

kube-shell follows path(s) as defined in $KUBECONFIG.

joa avatar Jan 17 '18 14:01 joa

This is much needed.. In the meantime.. A symlink work

xeor avatar Feb 06 '18 21:02 xeor

kubectl can actually function perfectly well if the value of KUBECONFIG is also a list of kubectl config files, not necessarily just one. It would be ideal if this tool could support that use case too.

damomurf avatar Feb 22 '18 10:02 damomurf

+1

Ewocker avatar May 15 '18 07:05 Ewocker

@marcosamorim can this issue be closed?

murali-reddy avatar Jun 06 '18 04:06 murali-reddy

I'm not the one who actually opened, but I don't see why not. :) Thanks for merging the PR btw

marcosamorim avatar Jun 06 '18 09:06 marcosamorim

@murali-reddy, I am sorry but I can't switch context when I use variable KUBECONFIG, like: export KUBECONFIG=${HOME}/.kube/first:${HOME}/.kube/second It always on first(

b1x avatar Jun 24 '18 11:06 b1x