-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
skaffold debug not adding JAVA_TOOL_OPTIONS env variable to deployment #3802
Comments
(Oops sorry — I mis-clicked on the close button.) @rmohammed-xtime could you please tell me more about your image: what are you using for the base image? What is your image's entrypoint or command? Basically |
I also had this situation occur just now which I chalked up to having multiple releases defined in the configuration. But quickly scanning #1702 I don't see anything trying to limit the deployments. I am running skaffold v1.6.0 on MacOs High Sierra 10.13.6 for a Java deployment of a play framework set of applications. |
@rmohammed-xtime could you please attach your pom.xml? @jkleckner could you please open a new issue, and include a small reproducible example? |
@rmohammed-xtime it would also help to see a debug log from |
@briandealwis The topic #2203 should address the underlying issue I saw. |
@rmohammed-xtime Would #2203 solve your issue as well? |
From conversation with @briandealwis in slack chat, I'm including more information on our image. The base image is |
@jkleckner I'm puzzled as to why your image isn't being picked up: the JVM debug transformer should be activated by the |
@briandealwis I'm happy to try to debug a bit. I haven't studied Go at all so am at a disadvantage. |
@briandealwis I added some debug println statements and find that
This append doesn't "step into" with the debugger: Happy to set up a brief screen sharing debug session if you like. |
@jkleckner could you open a new issue for this? And please include the logs of what you're seeing, with the command invocation. Honestly, it sounds like you're either encountering build or deploy errors, or running |
@briandealwis Ok, will do. But I assure you that a breakpoint entered the doDebug function and that the even though registered, the But I can easily believe there is some complexity with the helm deployment that stimulates this problem. Am a bit pressed at the moment so probably won't be until next week at the earliest. |
@briandealwis Before creating another issue, I noticed that Does skaffold look into the image env or just the pod spec ? We are using helm for deploy if that matters. Cc: @aboyett |
@jkleckner Oh! Debug isn't supported with Helm yet. It's being tracked in #2350. |
Ahh... That explains it. |
@jkleckner @briandealwis should we close this issue then? |
@dgageot For my use case, yes. @rmohammed-xtime Appears to be using jib deployment. |
Closing — will re-open if OP responds. |
Expected behavior
JAVA_TOOL_OPTIONS env variable added to deployment yaml when running skaffold debug
Actual behavior
JAVA_TOOL_OPTIONS env variable not added to deployment yaml when running skaffold debug
Information
Same result with
time="2020-03-09T10:54:08-07:00" level=info msg="Skaffold &{Version:v1.5.0 ConfigVersion:skaffold/v2alpha4 GitVersion: GitCommit:6a9247
5a4aa07180b1340c5bb1aa2b18ae5058ca GitTreeState:clean BuildDate:2020-03-06T20:20:58Z GoVersion:go1.13.4 Compiler:gc Platform:darwin/amd
64}"
{Version:kustomize/v3.5.4 GitCommit:3af514fa9f85430f0c1557c4a0291e62112ab026 BuildDate:2020-01-11T03:12:59Z GoOs:darwin GoArch:amd64}
2.1.0
macosx Darwin Kernel Version 18.7.0
The text was updated successfully, but these errors were encountered: