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

TypeError: Cannot read property 'certificatePath' of undefined #18

Closed
pigletfly opened this issue Aug 3, 2018 · 5 comments
Closed

TypeError: Cannot read property 'certificatePath' of undefined #18

pigletfly opened this issue Aug 3, 2018 · 5 comments
Assignees
Labels

Comments

@pigletfly
Copy link

when I run kubebox in a kubernetes cluster without certificate,a error was raised:

[eval]:367
    if (this.user.certificatePath) {
                  ^

TypeError: Cannot read property 'certificatePath' of undefined
    at Context.getMasterApi ([eval]:367:19)
    at new Kubebox ([eval]:1218:55)
    at Object.1../lib/config/context ([eval]:31:1)
    at s ([eval]:1:254)
    at e ([eval]:1:425)
    at [eval]:1:443
    at Script.runInThisContext (vm.js:65:33)
    at Object.runInThisContext (vm.js:199:38)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:660:30)
@cscetbon
Copy link

cscetbon commented Jan 4, 2019

@astefanutti any idea when this bug is gonna be fixed ?

@astefanutti
Copy link
Owner

@cscetbon I'll try to have it fixed for the next release.

I haven't been able to reproduce though it seems it's caused by a kube config file having a context with user that cannot be found in the users section by name. Would you be able to share your kube config file or confirm that hypothesis?

@cscetbon
Copy link

cscetbon commented Jan 4, 2019

@astefanutti, I use kubeadm-dind-cluster in my case and yeah there is no user used at all. Here is my configuration file

apiVersion: v1
clusters:
- cluster:
    insecure-skip-tls-verify: true
    server: http://127.0.0.1:32772
  name: dind
contexts:
- context:
    cluster: dind
    namespace: cassandra-e2e
    user: ""
  name: dind
current-context: dind
kind: Config
preferences: {}

@astefanutti
Copy link
Owner

@cscetbon thanks, that helps. I'll fix it for the next release.

@astefanutti astefanutti self-assigned this Jan 9, 2019
@astefanutti
Copy link
Owner

It should be fixed with 483a00a.

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

No branches or pull requests

3 participants