Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Config isn't able to take a string, or StringIO object #207

Closed
ryphon opened this issue Aug 19, 2020 · 2 comments · Fixed by #208
Closed

Config isn't able to take a string, or StringIO object #207

ryphon opened this issue Aug 19, 2020 · 2 comments · Fixed by #208
Assignees

Comments

@ryphon
Copy link
Contributor

ryphon commented Aug 19, 2020

Currently I use Rancher and K8s together. I can currently get my kubeconfig dynamically from a Rancher endpoint.

However, the kubernetes-client doesn't support any capability to use a kubeconfig from string, or even StringIO because a 'split' on the path is required.

The python client should support a kubeconfig via string for situations in which a filesystem either isn't available, or isn't viable.

@ryphon
Copy link
Contributor Author

ryphon commented Aug 19, 2020

I'm working on a pull request now to support a StringIO object, so as to not interfere with the existing 'path' functionality without trying to do some weird detection of a path vs an actual config string.

@roycaihw
Copy link
Member

/assign @ryphon

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

Successfully merging a pull request may close this issue.

2 participants