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

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


The following commit(s) were added to refs/heads/3.x by this push:
     new 1eadf6a8 Add Support for Topic in Servicebus Kamelets (#1620)
1eadf6a8 is described below

commit 1eadf6a8000f8fadd93e798d48a4e9b0ea67b7b8
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Sep 5 17:43:32 2023 +0200

    Add Support for Topic in Servicebus Kamelets (#1620)
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 kamelets/azure-servicebus-sink.kamelet.yaml                        | 7 +++++++
 kamelets/azure-servicebus-source.kamelet.yaml                      | 7 +++++++
 .../src/main/resources/kamelets/azure-servicebus-sink.kamelet.yaml | 7 +++++++
 .../main/resources/kamelets/azure-servicebus-source.kamelet.yaml   | 7 +++++++
 4 files changed, 28 insertions(+)

diff --git a/kamelets/azure-servicebus-sink.kamelet.yaml 
b/kamelets/azure-servicebus-sink.kamelet.yaml
index 5a603588..92dbcbcb 100644
--- a/kamelets/azure-servicebus-sink.kamelet.yaml
+++ b/kamelets/azure-servicebus-sink.kamelet.yaml
@@ -50,6 +50,12 @@ spec:
         x-descriptors:
         - urn:alm:descriptor:com.tectonic.ui:password
         - urn:camel:group:credentials
+      serviceBusType:
+        title: Servicebus Type
+        description: The service bus type of connection to execute. Queue is 
for typical queue option and topic for subscription based model.
+        type: string
+        default: queue
+        enum: ["queue", "topic"]
   types:
     in:
       mediaType: application/octet-stream
@@ -65,4 +71,5 @@ spec:
           uri: "azure-servicebus:{{topicOrQueueName}}"
           parameters:
             connectionString: "{{connectionString}}"
+            serviceBusType: "{{serviceBusType}}"
             producerOperation: "sendMessages"
diff --git a/kamelets/azure-servicebus-source.kamelet.yaml 
b/kamelets/azure-servicebus-source.kamelet.yaml
index 967973e5..7e8344e2 100644
--- a/kamelets/azure-servicebus-source.kamelet.yaml
+++ b/kamelets/azure-servicebus-source.kamelet.yaml
@@ -62,6 +62,12 @@ spec:
         title: Subscription Name
         description: Sets the name of the subscription in the topic to listen 
to. This parameter is mandatory in case of topic.
         type: string
+      serviceBusType:
+        title: Servicebus Type
+        description: The service bus type of connection to execute. Queue is 
for typical queue option and topic for subscription based model.
+        type: string
+        default: queue
+        enum: ["queue", "topic"]
   types:
     out:
       mediaType: application/octet-stream
@@ -76,6 +82,7 @@ spec:
         connectionString: "{{connectionString}}"
         serviceBusReceiveMode: "{{serviceBusReceiveMode}}"
         subscriptionName: "{{?subscriptionName}}"
+        serviceBusType: "{{serviceBusType}}"
       steps:
       - set-body:
           simple: "${body.toBytes()}"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/azure-servicebus-sink.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/azure-servicebus-sink.kamelet.yaml
index 5a603588..92dbcbcb 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/azure-servicebus-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/azure-servicebus-sink.kamelet.yaml
@@ -50,6 +50,12 @@ spec:
         x-descriptors:
         - urn:alm:descriptor:com.tectonic.ui:password
         - urn:camel:group:credentials
+      serviceBusType:
+        title: Servicebus Type
+        description: The service bus type of connection to execute. Queue is 
for typical queue option and topic for subscription based model.
+        type: string
+        default: queue
+        enum: ["queue", "topic"]
   types:
     in:
       mediaType: application/octet-stream
@@ -65,4 +71,5 @@ spec:
           uri: "azure-servicebus:{{topicOrQueueName}}"
           parameters:
             connectionString: "{{connectionString}}"
+            serviceBusType: "{{serviceBusType}}"
             producerOperation: "sendMessages"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/azure-servicebus-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/azure-servicebus-source.kamelet.yaml
index 967973e5..7e8344e2 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/azure-servicebus-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/azure-servicebus-source.kamelet.yaml
@@ -62,6 +62,12 @@ spec:
         title: Subscription Name
         description: Sets the name of the subscription in the topic to listen 
to. This parameter is mandatory in case of topic.
         type: string
+      serviceBusType:
+        title: Servicebus Type
+        description: The service bus type of connection to execute. Queue is 
for typical queue option and topic for subscription based model.
+        type: string
+        default: queue
+        enum: ["queue", "topic"]
   types:
     out:
       mediaType: application/octet-stream
@@ -76,6 +82,7 @@ spec:
         connectionString: "{{connectionString}}"
         serviceBusReceiveMode: "{{serviceBusReceiveMode}}"
         subscriptionName: "{{?subscriptionName}}"
+        serviceBusType: "{{serviceBusType}}"
       steps:
       - set-body:
           simple: "${body.toBytes()}"

Reply via email to