Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kamelet is internal only #854

Open
davsclaus opened this issue Aug 10, 2023 · 4 comments
Open

kamelet is internal only #854

davsclaus opened this issue Aug 10, 2023 · 4 comments
Labels
designer Karavan Designer

Comments

@davsclaus
Copy link
Contributor

Paste the following into karavan space

- route:
    id: route1
    from:
      uri: kamelet:beer-source
      steps:
        - removeHeaders:
            id: removeHeaders1
            pattern: '*'
        - to:
            id: to1
            uri: activemq:beer


- route:
    id: route2
    from:
      uri: activemq:beer
      steps:
        - log:
            id: log1
            message: "${body}"


- route:
    id: beer-source-1
    template: "true"
    from:
      uri: timer:beer?period=5000
      steps:
        - to:
            id: to2
            uri: https://random-data-api.com/api/beer/random_beer
        - to:
            id: to3
            uri: kamelet://sink?routeId=beer-source-1

And notice how the UI shows the last kamelet is external
Screenshot 2023-08-10 at 11 26 42

@davsclaus davsclaus added the designer Karavan Designer label Aug 10, 2023
@davsclaus
Copy link
Contributor Author

That last external ----------------> for kamelet should not be there.

@mgubaidullin
Copy link
Contributor

Looks like yaml is manually engineered.

Karavan tries to parce implicit or simplified dsl syntax but this functionality is limited.

Path parameters are not supported starting from version 3.21.0

I would recommend to use Karavan to design routes. It will make them in explicit canonical format with correct visualization.

In your particular case the last kamelet is sink that's why we have outgoing arrow.

@davsclaus
Copy link
Contributor Author

kamelet:sink is an internal queue name - also the hint is that its a template (its a model of the actual kamelet template)

template: true

There is also kamelet:source as internal queue name.

So karavan should check for that

  • kamelet:source
  • kamelet:sink

They are internal only.

@mgubaidullin
Copy link
Contributor

Route templates are not supported yet in Karavan.
Only kamelets from kamelet catalog or custom kamelets are supported for now.

The support of kamelet:source and kamelet:sink is planning as a part of #315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
designer Karavan Designer
Projects
None yet
Development

No branches or pull requests

2 participants