-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Quarkus ignores all "quarkus.*" environment properties on Kubernetes #36359
Comments
Probably also area/config |
cc @radcortez |
I'll have a look. |
Addition: this affect all "quarkus.*" properties, not just "consul-config.agent.host-port" |
Are you using precisely this property name?
Are you setting environment variable names in dotted format?
From the last comment, I'm guessing that you are using |
@radcortez yes, the app uses environment variables in dotted format and for some reason this worked (presumably for a long time). |
Sure. Feel free to document it. Thanks! |
That should go to release notes I suppose. Who is handling that for Quarkus and how do I contact that person? |
Before that change we used quarkus CLI properties as environment variables in openshift manifests (which we should not have do) and for some reason it worked (which it should not have do). When this behaviour was changed upstream, our jobs started to fail, this change should fix that. See quarkusio/quarkus#36359 for details
Release notes are added here: Are you able to edit and add the notes in the |
Before that change we used quarkus CLI properties as environment variables in openshift manifests (which we should not have do) and for some reason it worked (which it should not have do). When this behaviour was changed upstream, our jobs started to fail, this change should fix that. See quarkusio/quarkus#36359 for details
No, I can not. I prepared a note, could you add it into the guide?
|
This helped me, we have quite a few config envs in the x.y.z-format to change to X_Y_Z now. While the release notes makes it quite clear, @radcortez @fedinskiy last note should really be a added to the https://quarkus.io/guides/config-reference#environment-variables documentation paragraph, as it stil gives examples of envrionment naming resolutions in x.Y.Z-formats. And so, people that didn't read every release note will contiinue trying that format. @radcortez Should I open a seperate issue regadring environment documentation? |
You may want to hold that change :) I was not aware that so many users were relying on this, so I reaaded the support in #36917. |
Thanks @radcortez , I have now read the thread at #36917 , and that docker handling with dot mixed upper/lower case mode was surely interesting, I can see why you would want to add the dot-support /mixedmode:) We already started the posix compatible journey as we are deploying that version atm, (no big issue for us) |
Great :) |
Describe the bug
I have an application, which uses consul, I use property "quarkus.consul-config.agent.host-port" to provide the application with path to deployed consul instance. Starting from 6 or 7 of October, when I deploy this app on Openshift using 999-SNAPSHOT build, the app can not retrieve this property and fails to start.
The property is stored in openshift DeploymentConfig as "template.spec.containers.env.name".
If the property is put into property file, or the property variable inside the yaml is renamed into "QUARKUS_CONSUL_CONFIG_AGENT_HOST_PORT", then everything works fine.
Expected behavior
Application starts succefully
Actual behavior
Application fails with the following error:
How to Reproduce?
git clone [email protected]:quarkus-qe/quarkus-test-framework.git
mvn clean install -Pframework
This fails: " mvn clean install -Pexamples,openshift -pl examples/consul/ -Dit.test=OpenShiftGreetingResourceIT -Dquarkus.platform.version=999-SNAPSHOT"
This works as expected:
mvn clean install -Pexamples,openshift -pl examples/consul/ -Dit.test=OpenShiftGreetingResourceIT -Dquarkus.platform.version=3.4.2
If option
-Dts.global.delete.folder.on.exit=false
is added, then yaml fileexamples/consul/target/OpenShiftGreetingResourceIT/app/openshift.yml
contains deployment configBy default, the project is cleared afterwards, add
-Dts.openshift.delete.project.after.all=false -Dts.openshift.ephemeral.namespaces.enabled=false
to use the persistent oneOutput of
uname -a
orver
6.4.14-200.fc38.x86_64
Output of
java -version
17.0.5, vendor: GraalVM Community
GraalVM version (if different from Java)
No response
Quarkus version or git rev
6be99a4
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.7 (b89d5959fcde851dcb1c8946a785a163f14e1e29)
Additional information
No response
The text was updated successfully, but these errors were encountered: