[ 
https://issues.apache.org/jira/browse/CAMEL-17150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17436304#comment-17436304
 ] 

Claus Ibsen commented on CAMEL-17150:
-------------------------------------

You can now run the example with a camel-k yaml integration file

{code}
--- a/examples/kamelet-main/src/main/resources/camel/my-route.yaml
+++ b/examples/kamelet-main/src/main/resources/camel/my-route.yaml
@@ -1,6 +1,13 @@
-- route:
-    from: "kamelet:earthquake-source"
-    steps:
-      - unmarshal:
-          json: {}
-      - log: "Earthquake with magnitude ${body[properties][mag]} at 
${body[properties][place]}"
+apiVersion: camel.apache.org/v1
+kind: Integration
+metadata:
+  name: hello
+spec:
+  flows:
+    - from:
+        uri: 'kamelet:chuck-norris-source'
+        steps:
+          - log:
+              logging-level: WARN
+              log-name: chuck
+              message: '${body}'
{code}

> camel-yaml-dsl - Should be able to load camel-k yaml file
> ---------------------------------------------------------
>
>                 Key: CAMEL-17150
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17150
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-yaml-dsl
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.13.0
>
>
> If the yaml file is a camel-k CRD format, then the routes are embedded in the 
> spec/flows so we need to check for this to grab out the inlined routes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to