You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/05/27 06:48:00 UTC

[jira] [Commented] (CAMEL-17966) YAML DSL Template in Kamelet definition

    [ https://issues.apache.org/jira/browse/CAMEL-17966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17542802#comment-17542802 ] 

Claus Ibsen commented on CAMEL-17966:
-------------------------------------

It is #1 
kamelets = route templates


#2 was a way for end users to create routes from #1 and specify the parameters. Previously this was only possible using Java code. 

> YAML DSL Template in Kamelet definition
> ---------------------------------------
>
>                 Key: CAMEL-17966
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17966
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-yaml-dsl
>    Affects Versions: 3.16.0
>            Reporter: Marat Gubaidullin
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.18.0
>
>
> in CamelYamlDsl.json we have
> 1. RouteTemplateDefinition to define templated route. It includes beans, from and parameters (RouteTemplateParameterDefinition), ex:
> {code:java}
> - routeTemplate:
>     parameters:
>       - name: "bucket"
>         description: "Bucket"
>         required: true
>     beans:
>       - name: "myClient"
>     from:
>       uri: "timer:earthquake"
>       steps:
> {code}
>  
> 2. TemplatedRouteDefinition to setup route based on RouteTemplateDefinition. TemplatedRouteDefinition contains beans, parameters, routeId and routeTemplateRef, ex:
> {code:java}
> - templatedRoute:
>     routeTemplateRef: "s3template"
>     routeId: "mys3route"
>     parameters:
>       - name: "bucket"
>         value: "myBucket"
>     beans:
>       - name: "myClient"
> {code}
>  
>  
> What kind of *template* tag is in Kamelet (spec:template)? is it *routeTemplate* or *templatedRoute* or something else?
> ex. [https://github.com/apache/camel-kamelets/blob/b4f2844674fbc48bd62a98f9b5994ff6e291640c/kamelets/postgresql-sink.kamelet.yaml#L92]



--
This message was sent by Atlassian Jira
(v8.20.7#820007)