-
Notifications
You must be signed in to change notification settings - Fork 28
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
OpenShift environment variables with dashes or other special chars in name must be also present in lower priority dotted config source to be matched #923
Conversation
run tests |
I'm working on it, but it's a separate ongoing issue related to the Operator and this PR fixes what it says - for example |
Ah, so the one failing test is failing because operator doesn't support our Kafka version Unsupported Kafka.spec.kafka.version: 3.4.0. Supported versions are: [3.5.0, 3.5.1, 3.6.0] |
30cb43f
to
febe016
Compare
run test |
run tests |
quarkus-test-openshift/src/main/java/io/quarkus/test/bootstrap/inject/OpenShiftClient.java
Outdated
Show resolved
Hide resolved
// transform entry key => value to key=value and make it one string like application.properties | ||
var appProperties = propsWithDotsOrOtherSpecChar | ||
.stream() | ||
.map(propKey -> propKey + "=" + enrichProperties.get(propKey) + "\n") |
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.
It seems, that instead of storing filtered keys of property names and properties themselves in a separate structures, we can have a map of filtered properties. That will significantly easy cognitive load.
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.
ok
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.
it's one string now
quarkus-test-openshift/src/main/java/io/quarkus/test/bootstrap/inject/OpenShiftClient.java
Outdated
Show resolved
Hide resolved
febe016
to
edd9ee2
Compare
edd9ee2
to
71fa5fd
Compare
run tests |
quarkus-test-openshift/src/main/java/io/quarkus/test/bootstrap/inject/OpenShiftClient.java
Show resolved
Hide resolved
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.
Thanks for the fix!
Summary
#904 and #917 follow-up
Right now OpenShift tests that has dashes or other non-alphanumeric charcters in property key name (between dots) are not resolved if they are also not present in dotted config source as explain by Quarkus docs https://quarkus.io/version/main/guides/config-reference#environment-variables. This PR adds these properties as Quarkus Application config source and thus helps SR Config to resolve them.
Also bumps Kafka operator version so that we can test related tests and Kafka operator doesn't support 3.4.0 version anymore.
Please check the relevant options
run tests
phrase in comment)Checklist: