nicolaferraro opened a new pull request #1472: URL: https://github.com/apache/camel-k/pull/1472
<!-- Description --> Yaml can now be inlined in the integration spec (and it's the default behavior when running YAML files from CLI). ``` [nferraro@localhost camel-k]$ kamel run examples/routes.yaml -o yaml apiVersion: camel.apache.org/v1 kind: Integration metadata: creationTimestamp: null name: routes namespace: camel-flows spec: flows: - from: parameters: period: "5000" steps: - set-body: constant: Hello Yaml !!! - transform: simple: ${body.toUpperCase()} - to: log:info uri: timer:tick status: {} ``` And if you want to see the equivalent JSON output (JSON input is disabled for now): ``` [nferraro@localhost camel-k]$ kamel run examples/routes.yaml -o json { "kind": "Integration", "apiVersion": "camel.apache.org/v1", "metadata": { "name": "routes", "namespace": "camel-flows", "creationTimestamp": null }, "spec": { "flows": [ { "from": { "parameters": { "period": "5000" }, "steps": [ { "set-body": { "constant": "Hello Yaml !!!" } }, { "transform": { "simple": "${body.toUpperCase()}" } }, { "to": "log:info" } ], "uri": "timer:tick" } } ] }, "status": {} } ``` <!-- Enter your extended release note in the below block. If the PR requires additional action from users switching to the new release, include the string "action required". If no release note is required, write "NONE". You can (optionally) mark this PR with labels "kind/bug" or "kind/feature" to make sure the text is added to the right section of the release notes. --> **Release Note** ```release-note Camel YAML/JSON DSL can now be inlined with the integration custom resource ``` ---------------------------------------------------------------- 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