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/12/08 20:54:29 UTC

[GitHub] [camel-k] haifzhan opened a new issue #2824: Best practice to manage multiple routes in Camel-K

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


   Hi Camel-K team, 
   
   I have a question about managing routes. As far as I know each camel-k route is written in a single file(java/groovy/...), what would be the best structure for a camel-k project?
   
   ```
   my-project
       |___route_one
                 |___RouteOne.java
                 |___pod_template.yaml
                 |___logging.properties
       |___route_two
                 |___RouteTwo.yaml
                 |___service_template.yaml
       |___route_three
                 |___RouteThree.other_language
   ```
   For instance, here's the commands for the 3 routes:
   1. ` kamel run RouteOne.java --pod-template pod_template.yaml --property-file routing.properties`
   2. For route two I need to apply the service template and then run kamel run
   3. Similarly for route three, it is written by other language
   
   Here's my question:
   - What would be the best way to manage the routes status(start, stop and so on)?
   - What would be the best way if I am using API to mange the routes?
   - How to add test cases for each route?
   
   Thanks so much.


-- 
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 #2824: Best practice to manage multiple routes in Camel-K

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


   >     * What would be the best way to manage the routes status(start, stop and so on)?
   >     * What would be the best way if I am using API to mange the routes?
   
   I guess that in both case, you can play with `Integration` CRD and the related status.
   
   >     * How to add test cases for each route?
   
   [YAKS](https://github.com/citrusframework/yaks) seems to be a perfect fit.
   
   
   
   


-- 
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] github-actions[bot] closed issue #2824: Best practice to manage multiple routes in Camel-K

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #2824:
URL: https://github.com/apache/camel-k/issues/2824


   


-- 
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] github-actions[bot] commented on issue #2824: Best practice to manage multiple routes in Camel-K

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #2824:
URL: https://github.com/apache/camel-k/issues/2824#issuecomment-1064645373


   This issue has been automatically marked as stale due to 90 days of inactivity. 
   It will be closed if no further activity occurs within 15 days.
   If you think that’s incorrect or the issue should never stale, please simply write any comment.
   Thanks for your contributions!


-- 
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] haifzhan commented on issue #2824: Best practice to manage multiple routes in Camel-K

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


   > > ```
   > > * What would be the best way to manage the routes status(start, stop and so on)?
   > > * What would be the best way if I am using API to mange the routes?
   > > ```
   > 
   > I guess that in both case, you can play with `Integration` CRD and the related status.
   > 
   > > ```
   > > * How to add test cases for each route?
   > > ```
   > 
   > [YAKS](https://github.com/citrusframework/yaks) seems to be a perfect fit.
   
   Thanks for reply. What is Integration CRD? Would you mind share with me a link ? Thanks!


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