philipn / k8senv

A simple way to manage your Kubernetes contexts
24 stars 0 forks source link

Why is this better than kubectl config use-context? #2

Open andremarianiello opened 7 years ago

andremarianiello commented 7 years ago

kubectl already has a way to set your current context (kubectl config use-context). Why would I use this instead?

mcronce commented 7 years ago

+1

philipn commented 7 years ago

I don't think it was possible when I first wrote this utility. See e.g. https://github.com/kubernetes/kubernetes/issues/10735. It looks like kubectl config use-context does the trick now, though. The only drawback is that it doesn't provide a cue in the shell.

philipn commented 7 years ago

@andremarianiello It may also be worthwhile to ask this of https://github.com/ahmetb/kubectx, as the maintainer is also on the Kubernetes team.