This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 1645411fa03b503a9e4ba58c8eb42a98f2e0c9ea Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed Apr 14 14:46:29 2021 +0200 Added Azure Storage Queue Sink Kamelet --- azure-storage-queue-sink.kamelet.yaml | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/azure-storage-queue-sink.kamelet.yaml b/azure-storage-queue-sink.kamelet.yaml new file mode 100644 index 0000000..1e59e03 --- /dev/null +++ b/azure-storage-queue-sink.kamelet.yaml @@ -0,0 +1,59 @@ +apiVersion: camel.apache.org/v1alpha1 +kind: Kamelet +metadata: + name: azure-storage-queue-sink + annotations: + camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgOTEgODEiIGZpbGw9IiNmZmYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjx1c2UgeGxpbms6aHJlZj0iI0EiIHg9Ii41IiB5PSIuNSIvPjxzeW1ib2wgaWQ9IkEiIG92ZXJmbG93PSJ2aXNpYmxlIj48cGF0aCBkPSJNNjcuNTU4IDBIMjIuNDQxTDAgNDBsMjIuNDQxIDQwaDQ1LjExN0w5MCA0MCA2Ny [...] + camel.apache.org/provider: "Apache Software Foundation" + labels: + camel.apache.org/kamelet.type: "sink" +spec: + definition: + title: "Azure Storage Queue Sink" + description: |- + Send Messages to Azure Storage queues. + + The Kamelet is able to understand the following headers to be set: + + - `expiration` / `ce-expiration`: as the time to live of the message in the queue. + + If the header won't be set the default of 7 days will be used. + required: + - accountName + - queueName + - accessKey + properties: + accountName: + title: Account Name + description: The Azure Storage Queue account name. + type: string + queueName: + title: Queue Name + description: The Azure Storage Queue container name. + type: string + accessKey: + title: Access Key + description: The Azure Storage Queue access Key. + type: string + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:password + flow: + from: + uri: "kamelet:source" + steps: + - choice: + when: + - simple: "${header[expiration]}" + steps: + - set-header: + name: CamelAzureStorageQueueTimeToLive + simple: "${header[expiration]}" + - simple: "${header[ce-expiration]}" + steps: + - set-header: + name: CamelAzureStorageQueueTimeToLive + simple: "${header[ce-expiration]}" + - to: + uri: "azure-storage-queue://{{accountName}}/{{queueName}}" + parameters: + accessKey: "{{accessKey}}"