-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
io.fabric8.kubernetes.client.Config should expose all and the current context defined in kubeconfig #2215
Comments
I can contribute a PR, all I need is to know if you're ok with exposing |
+1 |
@rohanKanojia you mean hiding |
I have the same confusion as @adietish. Do you mean exposing certain fields (supposedly parsed from io.fabric8...model.Config) in io.fabric8...client.Config? Yes, I think it's safe enough (and probably quite useful) to expose the current configuration values. Back to the original issue, I'm not sure that what you can find in I see there is helper a method in KubeConfigUtils to deserialize configurations. Even after exposing the active configuration values/settings in |
ok, great.
Thx for the insight, wasn't aware, that's a very helpful pointer. What are the consequences exactly?
I'd think that one would be interested in the overriding values, not the overridden ones. And for the ones that might not be available ( |
Sorry, I think I misunderstood the question/issue. I'm understanding 2 different things here:
I don't know if this is what you're actually asking/proposing. Anyway, |
Hi @manusa
Would you agree that the kubernetes-client should do this (if requested) so that user programmers would not have to replicate the code? |
Hi @manusa
"all active values" is too wide in the context of my requirements while it's of course completely valid on its own.
Here's the background to it:
|
Hi @adietish
Yes, sure. Whatever improves developer's experience is welcome ;) Especially if it reuses internal methods, so having a clean public API to expose that seems pretty good (IMHO). In relation to #2215 (comment) |
Signed-off-by: Andre Dietisheim <[email protected]>
Signed-off-by: Andre Dietisheim <[email protected]>
Signed-off-by: Andre Dietisheim <[email protected]>
Signed-off-by: Andre Dietisheim <[email protected]>
Signed-off-by: Andre Dietisheim <[email protected]>
Signed-off-by: Andre Dietisheim <[email protected]>
Ex. If you need to list all clusters that are present in your kubeconfig there's no other way than to (re-) read and (re-) parse
~/.kube/config
.io.fabric8.kubernetes.client.Config
should therefore expose this info that is present inio.fabric8.kubernetes.api.model.Config
.There are also more values in the kubeconfig that a 3rd party programmer might want/need (ex. current cluster, etc.).
The text was updated successfully, but these errors were encountered: