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

unable to query config contexts #124

Closed
mattsawyer77 opened this issue Feb 9, 2020 · 2 comments
Closed

unable to query config contexts #124

mattsawyer77 opened this issue Feb 9, 2020 · 2 comments
Labels
config Kube config related

Comments

@mattsawyer77
Copy link

I was wondering if it might be possible to expose the config utils module. My use case requires the ability to get a list of named contexts from the config. But if I'm reading the code right this is impossible.

@clux clux added config Kube config related enhancement labels Feb 9, 2020
@clux
Copy link
Member

clux commented Feb 9, 2020

I think the Config struct is exposed. You could serialize the kube config file into that struct using serde_yaml. Although I think it's actually pretty reasonable to let users do this. We should just expose Config::load_config.

@clux
Copy link
Member

clux commented Feb 9, 2020

Made a PR for this in #125 - might tweak it a bit. But we ought to have something like this.

@clux clux closed this as completed in eb2392f Feb 9, 2020
clux added a commit that referenced this issue Feb 9, 2020
expose Config::load - closes #124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Kube config related
Projects
None yet
Development

No branches or pull requests

2 participants