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

assumes abs path to ca #119

Open
jason-kane opened this issue Apr 17, 2017 · 1 comment
Open

assumes abs path to ca #119

jason-kane opened this issue Apr 17, 2017 · 1 comment

Comments

@jason-kane
Copy link

    kubernetes = network_kubernetes_from_context(reactor, context_name, config_path)
  File "/usr/local/lib/python2.7/dist-packages/txkube/_network.py", line 80, in network_kubernetes_from_context
    cluster = config.clusters[context[u"cluster"]]
  File "/usr/local/lib/python2.7/dist-packages/pykube/config.py", line 142, in clusters
    BytesOrFile.maybe_set(c, "certificate-authority")
  File "/usr/local/lib/python2.7/dist-packages/pykube/config.py", line 225, in maybe_set
    d[file_key] = cls(filename=d[file_key])
  File "/usr/local/lib/python2.7/dist-packages/pykube/config.py", line 241, in __init__
    raise exceptions.PyKubeError("'{}' file does not exist".format(filename))
pykube.exceptions.PyKubeError: 'dev-ca.crt' file does not exist``` 

```$ cat ~/.kube/config
apiVersion: v1
clusters:
- cluster:
    certificate-authority: dev-ca.crt
...

the ca file resides in ~/.kube/dev-ca.crt. The same problem reoccurs with users[].user.client-certificate and .client-key. Putting absolute paths into ~/.kube/config appears to avoid the issue.

@exarkun
Copy link
Contributor

exarkun commented Apr 28, 2017

Thanks. It looks like this is a problem with pykube. I've forwarded the report upstream, we'll see what they say.

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

2 participants