While trying to convert my integration project to Integration resources via the kamel run -o yaml executable, I noticed that it is not possible to define the sources of the integration exclusively via the configuration file.
That means that I need to pass at least one of the sources file as command line argument.
As a result of specifying a source file in command line arguments as well as in configuration file, the source block is duplicated in the resulting integration resource (which is expected, I guess).
Steps to reproduce
Create a basic integration source file with camel init hello.java
Create a kamel-config.yaml including a minimal set of configuration:
What happened?
While trying to convert my integration project to
Integration
resources via thekamel run -o yaml
executable, I noticed that it is not possible to define the sources of the integration exclusively via the configuration file. That means that I need to pass at least one of the sources file as command line argument.As a result of specifying a source file in command line arguments as well as in configuration file, the source block is duplicated in the resulting integration resource (which is expected, I guess).
Steps to reproduce
camel init hello.java
kamel-config.yaml
including a minimal set of configuration:kamel run -o yaml --name hello
The command fails as no source files are specified in command line args.Relevant log output
Camel K version
v2.5.0