properties - Quarkus configuration with special characters - Stack Overflow

admin2025-04-17  2

I'm trying to add this env variable to a quarkus project in the corresponding application.properties:

quarkus.kubernetes.remote-debug.enabled=true
quarkus.kubernetes.env.vars.JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005

However, the resulting kubernetes file generated is wrong:

- name: JAVA_TOOL_OPTIONS
  value: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"

I can't find the solution (although I feel it is trivial)

I'm trying to add this env variable to a quarkus project in the corresponding application.properties:

quarkus.kubernetes.remote-debug.enabled=true
quarkus.kubernetes.env.vars.JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005

However, the resulting kubernetes file generated is wrong:

- name: JAVA_TOOL_OPTIONS
  value: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"

I can't find the solution (although I feel it is trivial)

Share Improve this question edited Jan 31 at 14:25 thmasker asked Jan 31 at 11:57 thmaskerthmasker 6401 gold badge12 silver badges31 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

I am not able to reproduce the issue. Here's what I am trying:

quarkus create app hello-quarkus -x kubernetes

I copy and paste the properties from your post and then run

./mvnw clean install

I check the generated files under target/kubernetes/kubernetes.yaml|json and I am seeing:

            - name: JAVA_TOOL_OPTIONS
              value: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
转载请注明原文地址:http://anycun.com/QandA/1744863639a88687.html