-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Strange merging of configuration properties in native mode when using snake-case-like config properties form #36671
Comments
I don't think this is an OpenShift issue, I'd rather say it's for @radcortez . |
Maybe I should keep |
I was not able to reproduce the issue, but I do have some observations:
Where are you setting (and which value) for
I did try this, but maybe I'm missing some requirements. Are you able to provide me with a bare metal reproducer? |
Reproducing it is not exactly the issue for me, as for your questions, I'm bit buried under other tasks, but I'll either provide bare-metal reproduce or all config source values this or next week.
I can easily test this theory by printing out config prop value. I'll do it as well and let you know. |
@michalvavrik is this still an issue? |
I re-implemented our app so that we always have present config keys in a dotted config source. I think it's so edge case that it doesn't make sense to spend time on this unless there is someone else experiencing it. Let me close it. |
Describe the bug
I have REST client url defined like this inside
src/main/resources/application.properties
:and when I deploy application to OpenShift, I have mounted
$PWD/config/application.properties
with:and environment variable defined in pod as:
and receive exception like
Invalid REST Client URL used: 'http://pongservice-ts-yfyycuckno.apps.ocp4-13.whatever:tcp://172.30.209.30:8080/hello'
Expected behavior
While I understand
pongservice_url
is not exactly kebab-case, I have to wonder - where doestcp://172.30.209.30:8080
comes from? Isn't this behavior strange?Actual behavior
PONGSERVICE_URL
How to Reproduce?
Steps to reproduce the behavior:
git clone [email protected]:michalvavrik/quarkus-test-suite.git
cd quarkus-test-suite/monitoring/opentelemetry-reactive
git checkout reproducer/oc-otel-native-issue
mvn clean verify -Dopenshift -Dnative -Dit.test=OpenShiftOpentelemetryReactiveIT
I bet you can simulate it in native mode just on bare-metal, but you will need to define env variables and config source to different value than is in native. Didn't try it though.
Output of
uname -a
orver
Fedora 38
Output of
java -version
Temurin 17
Quarkus version or git rev
999-SNAPSHOT (due to Kubernetes client bumps and changes in #35322 I can't test it with earlier versions without significant changes)
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.3
Additional information
No response
The text was updated successfully, but these errors were encountered: