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 2020/10/26 17:12:25 UTC

[GitHub] [camel-k-runtime] nicolaferraro opened a new issue #540: Allow to programmatically enable a route

nicolaferraro opened a new issue #540:
URL: https://github.com/apache/camel-k-runtime/issues/540


   Currently routes are loaded via properties, e.g.:
   
   ```properties
   camel.k.sources[0].location=file:/etc/camel/sources/i-source-000/display.groovy
   camel.k.sources[0].name=display
   camel.k.sources[0].language=groovy
   ```
   
   I was thinking to add a property like:
   
   ```properties
   camel.k.sources[0].enabled=false
   ```
   
   That could be used to enable/disable a route (default `true`).
   
   I'd use that in the operator this way:
   
   ```properties
   camel.k.sources[0].enabled={{hostname-matches:display-0}}
   ```
   
   Where `hostname-matches` is a property-function (we should define it in the runtime), that evaluates to true or false depending on the current name of the pod (`HOSTNAME` env variable).
   
   This can allow us to assign partition keys to various pods in a StatefulSet.
   I'm open to alternatives :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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k-runtime] nicolaferraro commented on issue #540: Allow to programmatically enable a route

Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #540:
URL: https://github.com/apache/camel-k-runtime/issues/540#issuecomment-732204305


   Not needed after this is merged: https://github.com/apache/camel/pull/4662


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k-runtime] nicolaferraro commented on issue #540: Allow to programmatically enable a route

Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #540:
URL: https://github.com/apache/camel-k-runtime/issues/540#issuecomment-718026177


   Yes, that was the purpose. Which also may simplify the monitoring part because routes will run only once in a cluster.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k-runtime] lburgazzoli commented on issue #540: Allow to programmatically enable a route

Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #540:
URL: https://github.com/apache/camel-k-runtime/issues/540#issuecomment-716698068


   you mean not to  load the route source entirely ? 


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k-runtime] nicolaferraro closed issue #540: Allow to programmatically enable a route

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


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org