You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "MotaOcimar (via GitHub)" <gi...@apache.org> on 2023/11/24 21:36:16 UTC

[I] How to load necessary files for the route? [camel-k-examples]

MotaOcimar opened a new issue, #92:
URL: https://github.com/apache/camel-k-examples/issues/92

   I'm migrating from Quakus Camel to Camel K and I came across the following question.
   
   Some routes use JSON and Velocity (.vm) files to format their body.
   But from Camel K 2.0, [it is no longer possible to load files as resources](https://camel.apache.org/blog/2023/07/camel-k-2-0/#remove-deprecated-cli-commands).
   
   What would be the easiest way for my Camel-K routes to reference these files?
   
   Related to https://github.com/apache/camel-k/issues/4853#issuecomment-1825778891


-- 
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-unsubscribe@camel.apache.org.apache.org

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


Re: [I] How to load necessary files for the route? [camel-k-examples]

Posted by "MotaOcimar (via GitHub)" <gi...@apache.org>.
MotaOcimar closed issue #92: How to load necessary files for the route?
URL: https://github.com/apache/camel-k-examples/issues/92


-- 
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-unsubscribe@camel.apache.org

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


Re: [I] How to load necessary files for the route? [camel-k-examples]

Posted by "MotaOcimar (via GitHub)" <gi...@apache.org>.
MotaOcimar commented on issue #92:
URL: https://github.com/apache/camel-k-examples/issues/92#issuecomment-1831846683

   [Resource loading remains for ConfigMaps and Secrets](https://camel.apache.org/camel-k/2.1.x/configuration/runtime-resources.html#runtime-resource-configmap).
   
   To do something similar to what `kamel run --config|--resource file:` did, you can create a ConfigMap. For example:
   
   The result obtained with the following command in Camel K 1.x:
   ```sh
   kamel run MyRoute.java --resource file:./models/responde.json@/work/models
   ```
   
   Can now be obtained with the following in Camel 2.x:
   
   ```sh
   kubectl create configmap models --from-file=./models/responde.json
   kamel run MyRoute.java --resource configmap:models@/work/models
   ```


-- 
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-unsubscribe@camel.apache.org

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