Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17966

YAML DSL Template in Kamelet definition

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.16.0
    • 3.18.0
    • camel-yaml-dsl
    • None
    • Unknown

    Description

      in CamelYamlDsl.json we have

      1. RouteTemplateDefinition to define templated route. It includes beans, from and parameters (RouteTemplateParameterDefinition), ex:

      - routeTemplate:
          parameters:
            - name: "bucket"
              description: "Bucket"
              required: true
          beans:
            - name: "myClient"
          from:
            uri: "timer:earthquake"
            steps:
      

       

      2. TemplatedRouteDefinition to setup route based on RouteTemplateDefinition. TemplatedRouteDefinition contains beans, parameters, routeId and routeTemplateRef, ex:

      - templatedRoute:
          routeTemplateRef: "s3template"
          routeId: "mys3route"
          parameters:
            - name: "bucket"
              value: "myBucket"
          beans:
            - name: "myClient"
      

       

       

      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

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            marat.gubaidullin@gmail.com Marat Gubaidullin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: