Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When KUBECONFIG has several values, only the first one is showed in the prompt #118

Closed
lzecca78 opened this issue Feb 20, 2019 · 2 comments

Comments

@lzecca78
Copy link

Hi guys, i have enabled kube module in order to view in the prompt also kubernetes cluster name and the namespace currently used. I have several entries in KUBECONFIG environment value like:

export KUBECONFIG=~/.kube/config-1:~/.kube/config-2:~/.kube/config-3

what is happening

I noticed that only the first element of the values (in the example above ~/.kube/config-1 ) is correctly showed in the prompt, while, when i switch the cluster to the ~/.kube/config-2 using kubectx the prompt is not enriched with the kubernetes information at all (the prompt appears just like no kubernetes cluster has been found).
I tried to change the ordering of the values and the problem always comes out when i switch to an element different from the first one.

how it should behave

Switching the cluster with kubectx i should see the right prompt information regarding the selected cluster and namespace

@argoyle
Copy link
Contributor

argoyle commented Feb 20, 2019

I actually opened a PR (#116 ) for this yesterday. Clone my read-all-configs-branch and go build and point to that binary of powerline-go until the PR is merged.

@lzecca78
Copy link
Author

@argoyle thanks a lot for this reference!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants