You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/09/05 15:43:30 UTC
[camel-kamelets] branch 3.21.x updated: Add Support for Topic in Servicebus Kamelets (#1621)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch 3.21.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/3.21.x by this push:
new d3aa799b Add Support for Topic in Servicebus Kamelets (#1621)
d3aa799b is described below
commit d3aa799b4701355f407b07b3b6f179876a85aa0c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Sep 5 17:43:24 2023 +0200
Add Support for Topic in Servicebus Kamelets (#1621)
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
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 0bfedb32..d962ea4b 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 a3cf3187..b25322ce 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 0bfedb32..d962ea4b 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 a3cf3187..b25322ce 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()}"