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 2023/01/20 06:37:31 UTC

[GitHub] [camel-kamelets] tadayosi commented on issue #1244: Provide a way to pass Kamelets arbitrary parameters so that users don't need to extend predefined Kamelets so often

tadayosi commented on issue #1244:
URL: https://github.com/apache/camel-kamelets/issues/1244#issuecomment-1397978465

   @oscerd What do you think about this feature request?
   
   One difficulty with implementing such a feature is that there are multiple endpoints in a single Kamelet, so we need to devise a good notation to specify which internal endpoints to apply the passed parameters.
   
   So for example in a KameletBinding with `kafka-source` (notice `extensions`):
   
   ```yaml
   apiVersion: camel.apache.org/v1alpha1
   kind: KameletBinding
   metadata:
     name: kafka-source-binding
   spec:
     source:
       ref:
         kind: Kamelet
         apiVersion: camel.apache.org/v1alpha1
         name: kafka-source
       properties:
         bootstrapServers: "The Bootstrap Servers"
         password: "The Password"
         topic: "The Topic Names"
         user: "The Username"
       extensions:
         from:
           endpointOptions: "groupId=my-consumergroup&consumsersCount=4"
         step.1:
           endpointOptions: "..."
         step.2:
           endpointOptions: "..."
     sink:
       ref:
         kind: KafkaTopic
         apiVersion: kafka.strimzi.io/v1beta1
         name: my-topic
   ```


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