8237: Add support for Jolokia over Kubernetes proxy#576
8237: Add support for Jolokia over Kubernetes proxy#576skarsaune wants to merge 38 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back skarsaune! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
This reverts commit c81c035.
|
@skarsaune This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
The cause for the log initialization output is calling |
However, other fabric8.io methods need slf4j quite immediately after that. As the log statement states, it will default to a NOOP logger that we believe is sufficient at this point (problems scanning contexts will manifest themselves as exceptions that should be sufficient to troubleshoot). |
|
Found the "issue" with the JMC agent.
|
|
@skarsaune This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
Finding on the Jolokia side. When probing connection k8s API authorization is missing. This can be fixed by using fabric8 http client instead of using OK Http directly. |
|
@skarsaune this pull request can not be integrated into git checkout JMC-8237-kubernetes-proxy
git fetch https://git.openjdk.org/jmc.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
|
@skarsaune This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
@skarsaune This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the |
| JolokiaServiceManager serviceManager = JolokiaServiceManagerFactory.createJolokiaServiceManager(configuration, | ||
| new JulLogHandler(PLUGIN_ID), new AllowAllRestrictor(), | ||
| () -> new TreeSet<ServerDetector>(Arrays.asList(ServerDetector.FALLBACK))); | ||
| logHandleer -> new TreeSet<ServerDetector>(Arrays.asList(ServerDetector.FALLBACK))); |
| @@ -0,0 +1,3 @@ | |||
| #Properties file for org.openjdk.jmc.kubernetes | |||
| page.name = Kubernetes | |||
| Bundle-Name = Kubernetes JMC extensions No newline at end of file | |||
| @Override | ||
| protected J4pResponse unwrapException(J4pException e) throws IOException, InstanceNotFoundException { | ||
| // recognize signs of disconnect and signal to the application for better | ||
| // handling |
| @Override | ||
| public boolean scanForInstances() { | ||
| // If credentials are locked and credentials are required, the scanner thread | ||
| // will get hung |
There was a problem hiding this comment.
this comment could probably be one line less too?
| new File(System.getProperty("user.home"), ".kube" + File.separator + "config").toString()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ | ||
| File configPath = new File(path); | ||
| if (contexts != null && contextsCached > configPath.lastModified()) {// the YAML parsing is soo incredibly | ||
| // sloow, hence cache context names for |
There was a problem hiding this comment.
the comments here could be moved to fit onto a single line?
aptmac
left a comment
There was a problem hiding this comment.
Finally got around to giving this PR a test, and it's looking good from what I've done so far.
Code-wise it looks good, from a formatting standpoint there's some inconsistency in using new lines with comments, I'll point some out.
I think this is ready for re-testing, the licenses will just need to be updated to be 2026, and potentially the dependencies updated along with rebasing ontop of main.
|
/open |
|
@aptmac Only the pull request author can set the pull request state to "open" |
|
/open |
|
@skarsaune This pull request is now open |
Yeah, it has been stale for a bit. I will fix the formatting. I have to merge/rebase and retest everything once #695 is merged. |
|
Great, I sponsored that and it's integrated now |
|
It's stuck on some formatting, it'll fix once you run |
|
Setting to draft, and resetting test status boxes. Needs retest now. |
JMC-8273 : Use the jolokia protocol over a kubernetes http proxy.
Testing connectivity:
Other things observed:
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jmc.git pull/576/head:pull/576$ git checkout pull/576Update a local copy of the PR:
$ git checkout pull/576$ git pull https://git.openjdk.org/jmc.git pull/576/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 576View PR using the GUI difftool:
$ git pr show -t 576Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jmc/pull/576.diff
Using Webrev
Link to Webrev Comment