tarilabs commented on issue #3937:
URL: https://github.com/apache/camel-k/issues/3937#issuecomment-1359428161

   @squakez pardon me, but I would need some better guidance. My goal would be 
to have [something like 
this](https://github.com/kiegroup/yard/blob/ea1be2f3d80db1b0bb6f5288781c232694df6ec8/examples/traffic-violation.yml#L15-L22),
 "inline" in a kamelet binding yaml file.
   
   i.e.: I want somewhere to have:
   
   ```yaml
   apiVersion: camel.apache.org/v1alpha1
   kind: KameletBinding
   metadata:
     name: timer-source-binding
   spec:
     source:
       ref:
         kind: Kamelet
         apiVersion: camel.apache.org/v1alpha1
         name: timer-source
       properties:
         message: hello world
         period: 5000
     sink:
       ref:
         kind: Kamelet
         apiVersion: camel.apache.org/v1alpha1
         name: mmk
       properties:
         kdtable:
          type: DecisionTable
          inputs: ['Violation.type', 'Violation.Actual Speed - Violation.Speed 
Limit']
          outputComponents: ['Amount', 'Points']
          rules:
           - ['="speed"', '[10..30)', 500, 3]
           - ['="speed"', '>= 30', 1000, 7]
           - ['="parking"', '-', 100, 1]
           - ['="driving under the influence"', '-', 1000, 5]
   ```
   
   or similar in a `KameletBinding` file.
   
   What's the best way to:
   
   - define a Kamelet (`kind: Kamelet` yaml file)
   - and a Camel Processor (in Java)
   
   which would fetch the `kdtable` configuration (regardless of the actual name 
of the Kamelet), please?


-- 
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-unsubscr...@camel.apache.org

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

Reply via email to