git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] nicolaferraro opened a new issue #249: Add support for template endpoint


nicolaferraro opened a new issue #249: Add support for template endpoint
URL: https://github.com/apache/camel-k/issues/249
 
 
   I would like to write a route as:
   
   ```
   from("timer:tick")
     .to("template:out")
   ```
   
   ... leaving the last endpoint open.
   Then you can provide the actual value of out in the trait configuration, like: `kamel run -t template.out=knative:channel/a`.
   
   The reason why we don't just use placeholder here is that having the actual value in the trait configuration allows to add the required libraries at build time.
   
   It will support named endpoint, so we can template sources, sink and patterns with this strategy.
   
   E.g.
   
   ```
   from("template:source")
     .split().tokenize(" ")
     .to("template:sink")
   ```
   
   Then provide the value for "source" and "sink".
   
   This is a simpler requirement than using a "routebox-like" strategy for creating "connectors", but it should be enough flexible to create e.g. a CamelSource in Knative.
   
   Thoughts @lburgazzoli, @chirino, @davsclaus, @valdar, @zregvart, @oscerd, @gnodet ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@xxxxxxxxxxxxxxxx


With regards,
Apache Git Services