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 03:09:41 UTC

[GitHub] [camel-k] scodeman opened a new issue #2769: Dry run kamel run

scodeman opened a new issue #2769:
URL: https://github.com/apache/camel-k/issues/2769


   Is it possible to perform a dry-run with kamel in order to retrieve the Kubernetes manifest that would be representative of an integration (written in other languages like Java DSL, etc...) ?
   
   The need behind that is to be able to package an integration as one of the resources within independent helm chart.
   The workflow foreseen:
   1. **kamel local build xxxx.java** to generate and manage the tagging/versioning and release of integration images
   2. retrieve corresponding Integration CR manifest
   3. have helm chart reuse manifest with corresponding image within integration template
   ```yaml
   traits:
     container:
         configuration:
           enabled: true
           image: <locally_built_image>
   ```
   
   


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



[GitHub] [camel-k] squakez edited a comment on issue #2769: Dry run kamel run

Posted by GitBox <gi...@apache.org>.
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



[GitHub] [camel-k] astefanutti commented on issue #2769: Dry run kamel run

Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #2769:
URL: https://github.com/apache/camel-k/issues/2769#issuecomment-976385392


   Damn, I had the `kamel run` code open to double check and missed it :) Maybe I should buy better glasses :D


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



[GitHub] [camel-k] squakez commented on issue #2769: Dry run kamel run

Posted by GitBox <gi...@apache.org>.
squakez commented 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 `-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



[GitHub] [camel-k] scodeman commented on issue #2769: Dry run kamel run

Posted by GitBox <gi...@apache.org>.
scodeman commented on issue #2769:
URL: https://github.com/apache/camel-k/issues/2769#issuecomment-976123729


   Somehow related to #2737


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



[GitHub] [camel-k] astefanutti commented on issue #2769: Dry run kamel run

Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #2769:
URL: https://github.com/apache/camel-k/issues/2769#issuecomment-976303414


   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. 


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



[GitHub] [camel-k] scodeman commented on issue #2769: Dry run kamel run

Posted by GitBox <gi...@apache.org>.
scodeman commented on issue #2769:
URL: https://github.com/apache/camel-k/issues/2769#issuecomment-977362451


   Yes, perfect that does it. Thank  you.


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



[GitHub] [camel-k] scodeman closed issue #2769: Dry run kamel run

Posted by GitBox <gi...@apache.org>.
scodeman closed issue #2769:
URL: https://github.com/apache/camel-k/issues/2769


   


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