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:
us...@infra.apache.org


Reply via email to