KaotoIO / kaoto

The UI of the Kaoto project
https://kaoto.io
Apache License 2.0
35 stars 26 forks source link

Support Bean Reference : Kamelet #468

Open igarashitm opened 11 months ago

igarashitm commented 11 months ago

Please describe the feature that you want to propose

A variation of #467 but for Kamelet.

Being a building block/template, Unlike plain Camel Route, Kamelet bean reference should only scope Kamelet local beans. Also, the syntax for reference is different from plain Camel Route which uses # prefix.

Other than the described above, what we want to do is same with #467. Take bean Java type into account and make bean configuration more specific, as well as allow configuring directly from step configuration.

Kamelet local beans, defined directly in Kamelet /template/beans https://github.com/apache/camel-kamelets/blob/48f422e3b5fca1407f0e88d9f082e2afc0c46de6/kamelets/avro-deserialize-action.kamelet.yaml#L52-L59

Kamelet bean reference syntax, #bean:{{schemaResolver}} https://github.com/apache/camel-kamelets/blob/48f422e3b5fca1407f0e88d9f082e2afc0c46de6/kamelets/avro-deserialize-action.kamelet.yaml#L67

lordrip commented 10 months ago

Blocked by #470

igarashitm commented 9 months ago

The basic bean reference feature is implemented in https://github.com/KaotoIO/kaoto-next/pull/757 It doesn't take Java type into account yet.