You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/23 10:30:41 UTC
[GitHub] [camel-k] squakez edited a comment on issue #2769: Dry run kamel run
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org