cfitzw opened a new pull request, #6158:
URL: https://github.com/apache/camel-k/pull/6158

   <!-- Description -->
   Address #6157.
   
   The goal of the PR is to address missing coverage as it pertains to 
configmaps that were generated with the `--from-file` function, specifically 
for `.properties` files (e.g. `kubectl create configmap my-cm-properties-file 
--from-file=./files/my.properties`).
   
   This was built off the `tags/v2.6.0`.
   
   Additions:
   1. File-based configmaps housing a properties file
   2. Variable interpolation (substitution), very common 
(https://commons.apache.org/proper/commons-configuration/userguide/howto_basicfeatures.html#Variable_Interpolation).
   
   This PR highlights that these new tests pass uses the default `quarkus` 
runtime, but when switching to `plain-quarkus` runtime, it fails.
   
   Tested via:
   1. `make`
   2. `make images`
   3. `kubectl create namespace camel-k`
   4. `make install-k8s-global`
   5. `kubectl patch itp camel-k -n camel-k -p 
'{"spec":{"traits":{"camel":{"runtimeProvider":"plain-quarkus"}}}}' 
--type=merge`
   6. `make test-common`
   
   Error from plain-quarkus:
   ```bash
   dump.go:417:     > 2025-05-09 19:24:51,164 ERROR 
[org.apa.cam.qua.mai.CamelMainRuntime] (main) Failed to start application: 
org.apache.camel.FailedToCreateRouteException: Failed to create route route1 
at: >>> SetBody[simple{configmap content is: {{my.key.1}} {{my.key.2}}}] <<< in 
route: Route(route1)[From[timer:configmap] -> [SetBody[simple{confi... because 
of Property with key [my.key.1] not found in properties from text: configmap 
content is: {{my.key.1}} {{my.key.2}}
   ```
   
   _**NOTE:** The initial `make` was failing on `keystore_test.go` due to 
something with the cert -- did not troubleshoot, but noting it for awareness._
   
   
   **Release Note**
   ```release-note
   NONE
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to