lbroudoux commented on issue #1651:
URL: https://github.com/apache/camel-k/issues/1651#issuecomment-679017696
When using `1.0.0-RC2` of the CLI, the flow is serialized as a String and
not raw YAML within the `Integration` resource:
```yaml
spec:
sources:
- content: |
- from:
uri: "timer:tick"
parameters:
# time in milliseconds
period: 10000
steps:
- set-body:
constant: "Welcome to Apache Camel K"
- set-header:
name: ContentType
simple: text/plain
- transform:
simple: "${body.toUpperCase()}"
- to:
uri: "log:info?multiline=true&showAll=true"
name: timed-greeter.yaml
```
With this format, I correctly get the following lines in logs:
```
[1] 2020-08-24 09:29:41.950 INFO [main] AbstractCamelContext - Route:
route1 started and consuming from: timer://tick
[1] 2020-08-24 09:29:41.954 INFO [main] AbstractCamelContext - Total 1
routes, of which 1 are started
```
Maybe this just allow to keep the ordering of attributes and having `uri`
defined just after `from`?
----------------------------------------------------------------
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:
[email protected]