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
Do not rely on whatever kubernetes context is current at the client (allow specifying context) #453
Do not rely on whatever kubernetes context is current at the client (allow specifying context) #453
Conversation
Note: Everything points to the YAML parsing (jackson + snakeyaml) being extremely slow. For the fabric8 kubernetes client, updating jackson could be a thing. FasterXML/jackson-dataformats-text#67 |
@rhuss : I'm wondering whether it should also be possible to specify context in a query param in the url, as it may be quite confusing in situations where the env map is not easily specified (such as in jconsole/jvisualvm/jmc). e.g. |
Hi @skarsaune sorry for being again late and I'm a bit out-of-context again. I'm a bit worried that the connect URL is not self-contained as it still relies on an external context ( However, I would not make the context configurable but the location of the config file. This is how it is down typically, I.e. to set the |
Hmm, that may be a good pattern for advanced users, but I thing multiple contexts in the config is a quite common use case. So for instance AKS, EKS and gke will store config to the default config, and to use |
I have tried to debug a little. There is no direct support for query parameters in the JMX service url API. |
Ok, let's stick with the context file then, but wrt/ self contained-ness of the connect uri: I guess this would be helpful, but on the other side, this also exposes credential information in the URL (so that it can appear in logs). If so we might want to provide both options. Regardless of what, it's up to you and let the PR merge asap. Just tell me in which direction you want to go. I plan a release also soonish when #464 has landed. |
Documentation is always great ;-) I think it makes totally sense to add this to the Jolokia manual, but as you said, we can do this post-release, but it would be cool if we would have some basic docs that can be referenced from the release notes. Let's merge the PR now, the release will probably happen either over the weekend or at least next week (hopefully) |
Not specifying context can be highly confusing for users switching between different clusters. Allow connections to specify what context to use.