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 a Namespace Causes Error #13

Open
emmercm opened this issue Dec 3, 2019 · 3 comments
Open

Kube Config Context Without a Namespace Causes Error #13

emmercm opened this issue Dec 3, 2019 · 3 comments

Comments

@emmercm
Copy link

emmercm commented Dec 3, 2019

I have a kubeconfig that looks like:

apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: ...
    server: ...
  name: ...
contexts:
- context:
    cluster: ...
    user: ...
  name: ...
current-context: ...
kind: Config
preferences: {}
users:
- name: ...
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      args:
      - token
      - -i
      - ...
      command: ...
      env:
        - name: ...
          value: ...

and when I powerline-daemon --kill I get an error similar to:

2019-12-03 10:15:52,043:ERROR:shell:kubernetes:'namespace'

I think c366a55#diff-5206fb189568a38aa689ef479153c15d intended to fix this but there's two instances of namespace = ctx['namespace'].

@mortenlj
Copy link

I believe this is fixed in #14, so just need someone to merge it.

@emmercm
Copy link
Author

emmercm commented May 2, 2020

Any update?

@process0
Copy link

process0 commented Jun 4, 2020

Experiencing this as well

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