This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch fix-1005
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit e62437292e14960ab8d6626946874ae722ba9fa8
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Mon Sep 19 14:32:48 2022 +0200

    Azure Eventhubs Sink - partition parameter
    
    Signed-off-by: Andrea Cosentino <anco...@gmail.com>
---
 kamelets/azure-eventhubs-sink.kamelet.yaml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/kamelets/azure-eventhubs-sink.kamelet.yaml 
b/kamelets/azure-eventhubs-sink.kamelet.yaml
index 4873fa28..e5f15dc5 100644
--- a/kamelets/azure-eventhubs-sink.kamelet.yaml
+++ b/kamelets/azure-eventhubs-sink.kamelet.yaml
@@ -33,7 +33,7 @@ spec:
     description: |-
       Send events to Azure Event Hubs.
 
-      The Kamelet checks for the `partition` / `ce-partition` header to 
determine how long an event remains in the Azure Storage queue. Use 
`PnDTnHnMn.nS.` format. For example, `PT20.345S` parses as 20.345 seconds and 
`P2D` parses as 2 days.
+      The Kamelet checks for the `partition-id` / `ce-partition-id` header 
which is an identifier of the Event Hub partition that the event will be sent 
to. If the identifier is not specified, the Event Hubs service will be 
responsible for routing events that are sent to an available partition.
          
       A header is optional. If the header is not set, the partition is 
assigned by Event Hubs.
     required:
@@ -80,16 +80,16 @@ spec:
       steps:
       - choice:
           when:
-          - simple: "${header[partition]}"
+          - simple: "${header[partition-id]}"
             steps:
             - set-header:
                 name: CamelAzureEventHubsPartitionId
-                simple: "${header[partition]}"
-          - simple: "${header[ce-partition]}"
+                simple: "${header[partition-id]}"
+          - simple: "${header[ce-partition-id]}"
             steps:
             - set-header:
                 name: CamelAzureEventHubsPartitionId
-                simple: "${header[ce-partition]}"
+                simple: "${header[ce-partition-id]}"
       - to:
           uri: "azure-eventhubs://{{namespaceName}}/{{eventhubName}}"
           parameters:

Reply via email to