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

Kube config context without current-context causes error #15

Open
wmuizelaar opened this issue Dec 28, 2019 · 0 comments
Open

Kube config context without current-context causes error #15

wmuizelaar opened this issue Dec 28, 2019 · 0 comments

Comments

@wmuizelaar
Copy link
Contributor

Hi,
I updated all my python-modules to the latest versions, and therefore powerline-kubernetes was updated as well.

I use minkube to start (and stop) clusters locally, and when you stop minikube, it sets the current-context in the kube-config file to current-context: ""

Powerline-kubernetes cannot handle that very well, and gives me this error-message:
2019-12-28 17:55:16,301:ERROR:shell:kubernetes:Invalid kube-config file. Expected key current-context in kube-config

Is it possible to silence this error? Or just not let it error, but just act the same is if there wasn't a kube-config file available to read?

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

1 participant