lburgazzoli opened a new issue #2271: URL: https://github.com/apache/camel-k/issues/2271
[Route Template local beans ](https://issues.apache.org/jira/browse/CAMEL-16394) is approaching and we need to define how we can leverage such functionality in camel-k and in the kamelets definition. The current layout for kamelets is: ```yaml apiVersion: camel.apache.org/v1alpha1 kind: Kamelet metadata: name: telegram-text-source e" spec: ... flow: from: uri: direct:start steps: ... ``` I'd propose to replaces `flow` with `template` so it would looks like: ```yaml apiVersion: camel.apache.org/v1alpha1 kind: Kamelet metadata: name: telegram-text-source e" spec: ... template: beans: - name: myBean type: com.acme.MyBean properties: foo: "bar" from: uri: direct:start steps: - process: "myBean" ``` NOTE: - we should keep `flow` for backward compatibility but to use beans one has to use `template` - the new `template` keyword can be provided by the Camel YAML DSL so we can reduce the custom code we have to maintain for camel-k. The code generated by the camel-k operator should then be: ```yaml - template: beans: - name: myBean type: com.acme.MyBean properties: foo: "bar" from: uri: direct:start steps: - process: "myBean" ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org