-
Notifications
You must be signed in to change notification settings - Fork 2.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
Kubernetes: Provide properties to remote debugging #24104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea!
Nice idea but I don't see how it fixes #23765 ? The |
If I understood correctly the issue you reported, what you wanted to do is to set the java agent configuration. This PR does this using the system property |
Will setting the I still think the command:
- java
- -Dquarkus.http.host=0.0.0.0
- -Djava.util.logging.manager=org.jboss.logmanager.LogManager
- -jar
- /deployments/quarkus-run.jar Shouldn't that be fixed as well (maybe not in this PR)? |
Yes, using the changes in this PR, users won't need to deal with how to provide the JVM arguments any longer. Internally, it will use the About your comment, you mentioned several things:
Extracted from the comment:
The command is auto-generated by the OpenShift extension and you would only specify one at your own risk. |
But why does the If I were to |
I guess this decision was made to be able to use as many images as possible since some images might have a not Quarkus-compatible command, but I will add @iocanel to the thread, so he can clarify this point. |
@Sgitario @edeandrea: I don't recall what was the initial idea. I do recall though that in other places we assume that it's the images responsibility to set the command unless the user explicitly specifies one. Eitherway, I think that at some point we can change that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am pretty sure this will need to be rebased.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR looks, good to me. But I think that it needs rebase.
I would completely agree with that @iocanel. In most cases, if I'm running some image I would assume that the command to run it is already baked into the image. |
This PR allows to easily configure the remote debugging and describes how to do this in the documentation. I've also tried to expose another route to map the java agent port, but as intellij could handle this port from localhost (it threw a handshake error), I decided to not over-complicate this guide and simple do the port-forward bit (see my changes in documentation). Fix quarkusio#17581 Fix quarkusio#23765
8294910
to
14dd231
Compare
This PR allows to easily configure the remote debugging and describes how to do this in the documentation.
I've also tried to expose another route to map the java agent port, but as intellij couldn't handle this port from localhost (it threw a handshake error), I decided to not over-complicate this guide and simple do the port-forward bit (see my changes in documentation).
I only did these changes for OpenShift and Kubernetes, not Knative, but let me know if you think it could fit in Knative as well.
Fix #17581
Fix #23765