Skip to content

Commit

Permalink
Add Support for Topic in Servicebus Kamelets
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
  • Loading branch information
oscerd committed Sep 5, 2023
1 parent e11fb60 commit 398222c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kamelets/azure-servicebus-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -65,4 +71,5 @@ spec:
uri: "azure-servicebus:{{topicOrQueueName}}"
parameters:
connectionString: "{{connectionString}}"
serviceBusType: "{{serviceBusType}}"
producerOperation: "sendMessages"
7 changes: 7 additions & 0 deletions kamelets/azure-servicebus-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -76,6 +82,7 @@ spec:
connectionString: "{{connectionString}}"
serviceBusReceiveMode: "{{serviceBusReceiveMode}}"
subscriptionName: "{{?subscriptionName}}"
serviceBusType: "{{serviceBusType}}"
steps:
- set-body:
simple: "${body.toBytes()}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -65,4 +71,5 @@ spec:
uri: "azure-servicebus:{{topicOrQueueName}}"
parameters:
connectionString: "{{connectionString}}"
serviceBusType: "{{serviceBusType}}"
producerOperation: "sendMessages"
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -76,6 +82,7 @@ spec:
connectionString: "{{connectionString}}"
serviceBusReceiveMode: "{{serviceBusReceiveMode}}"
subscriptionName: "{{?subscriptionName}}"
serviceBusType: "{{serviceBusType}}"
steps:
- set-body:
simple: "${body.toBytes()}"
Expand Down

0 comments on commit 398222c

Please sign in to comment.