squakez edited a comment on issue #2769:
URL: https://github.com/apache/camel-k/issues/2769#issuecomment-976379922


   > I don't think that is currently possible. If I understand your use case 
correctly, we could have `kamel run --dry-run`, or `kamel run -o yaml` (akin to 
`kamel install` and `kubectl -o`), to output the generated Integration resource.
   
   We already have the `kamel run ... -o yaml` option that will return the 
`Integration`:
   ```
   $ kamel run Sample.java -o yaml -p test=test
   apiVersion: camel.apache.org/v1
   kind: Integration
   metadata:
     creationTimestamp: null
     name: sample
     namespace: default
   spec:
     sources:
     - content: "/*\n * Licensed to the Apache Software Foundation (ASF) ...\n 
*/\n\n import org.apache.camel.builder.RouteBuilder;\n\npublic
         class Sample extends RouteBuilder {\n  @Override\n  public void 
configure()
         throws Exception {\n\t  from(\"timer:tick\")\n        .log(\"Hello 
Camel K!\");\n
         \ }\n}"
       name: Sample.java
     traits:
       camel:
         configuration:
           properties:
           - test = test
   status: {}
   ```
   Is it that what we're looking for?


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to