Fix OpenShiftStrimziKafkaWithRegistryMessagingIT by filtering out invalid environment variables propagated to the OpenShift pod #1117
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
After quarkusio/quarkus#40225 we have seen a bit of change in the behavior. I suppose it is a right direction. We have following error:
Which has been experienced in past quarkusio/quarkus#23383 and means that Quarkus recognized channel called
channel
without connector, however we did set this connector:defined inside pod env vars which is generated from
mp.messaging.incoming.channel-stock-price.connector=smallrye-kafka
set as system property. As you can see the expected name ischannel-stock-price
and notchannel
. This changed I guess because of how runtime properties are recorded. Correct generated name should beMP_MESSAGING_INCOMING__CHANNEL_STOCK_PRICE__CONNECTOR
however even this format is not unambiguous.That is why in the past I followed https://smallrye.io/smallrye-config/Main/config/environment-variables/ suggestion to put config properties also to the dotted config source with a lower priority. Problem is that we still set these "incorrect" environment properties even for non-Quarkus properties. For we know that Quarkus uses MP config implementation, but we don't know whether other projects doesn't consume environment variables directly.
Therefore we should let only Quarkus to propagate these dotted properties to the integrated libraries in their correct format. At least that's how I read it. I can be wrong, but this PR fixes FW OCP failure.
Please check the relevant options
run tests
phrase in comment)Checklist: