This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch 1930 in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 9304ef3963d5de7fd6868aac4fce05694a4918b9 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Mar 7 09:28:12 2024 +0100 CDC Storage Source Kamelets, rename to -event-based instead of cdc - Azure Storage Blob Signed-off-by: Andrea Cosentino <anco...@gmail.com> --- .../azure-storage-blob-cdc-source.kamelet.yaml | 145 --------------------- 1 file changed, 145 deletions(-) diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-cdc-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-cdc-source.kamelet.yaml deleted file mode 100644 index 5c4679fa..00000000 --- a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-cdc-source.kamelet.yaml +++ /dev/null @@ -1,145 +0,0 @@ -# --------------------------------------------------------------------------- -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# --------------------------------------------------------------------------- - -apiVersion: camel.apache.org/v1 -kind: Kamelet -metadata: - name: azure-storage-blob-cdc-source - annotations: - camel.apache.org/kamelet.support.level: "Preview" - camel.apache.org/catalog.version: "4.5.0-SNAPSHOT" - camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgODEgODIiIGZpbGw9IiNmZmYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjx1c2UgeGxpbms6aHJlZj0iI0EiIHg9Ii41IiB5PSIuNSIvPjxzeW1ib2wgaWQ9IkEiIG92ZXJmbG93PSJ2aXNpYmxlIj48cGF0aCBkPSJNMS4zMzMgMEMuNTMzIDAgMCAuNTMzIDAgMS4zMzN2MTZjMCAuOC41MzMgMS4zMz [...] - camel.apache.org/provider: "Apache Software Foundation" - camel.apache.org/kamelet.group: "Azure Servicebus" - camel.apache.org/kamelet.namespace: "Azure" - labels: - camel.apache.org/kamelet.type: "source" -spec: - definition: - title: Azure Storage Blob CDC Source - description: |- - Receive data from Azure Service Bus subscribed to Azure Eventgrid reporting events related to a Azure Storage Blob account. - - Connection string is the basic method for authenticating to the Azure Servicebus Queue. - - To use this Kamelet you'll need to set up Events on your Azure Storage Blob account and select as an endpoint an Azure Servicebus Queue. - required: - - topicOrQueueName - - connectionString - - accountName - - containerName - - accessKey - type: object - properties: - topicOrQueueName: - title: Topic Or Queue Name - description: Topic Or Queue Name for the Azure Servicebus instance - type: string - connectionString: - title: Connection String - description: Connection String for Azure Servicebus instance - type: string - format: password - x-descriptors: - - urn:camel:group:credentials - serviceBusReceiveMode: - title: Servicebus Receive Mode - description: Sets the receive mode for the receiver. - type: string - default: RECEIVE_AND_DELETE - enum: ["RECEIVE_AND_DELETE", "PEEK_LOCK"] - subscriptionName: - 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 - accountName: - title: Account Name - description: The Azure Storage Blob account name. - type: string - x-descriptors: - - urn:camel:group:credentials - containerName: - title: Container Name - description: The Azure Storage Blob container name. - type: string - accessKey: - title: Access Key - description: The Azure Storage Blob access key. - type: string - format: password - x-descriptors: - - urn:camel:group:credentials - credentialType: - title: Credential Type - description: Determines the credential strategy to adopt. - type: string - default: SHARED_ACCOUNT_KEY - enum: ["SHARED_ACCOUNT_KEY", "SHARED_KEY_CREDENTIAL", "AZURE_IDENTITY"] - getBlob: - title: Get Object in Container - description: >- - If getBlob is enabled, then the file created in the container will be - get and returned as body, if not only the event will be returned as body. - type: boolean - default: false - types: - out: - mediaType: application/octet-stream - dependencies: - - "camel:azure-servicebus" - - "camel:azure-storage-blob" - - "camel:kamelet" - - "camel:core" - - 'camel:jsonpath' - - 'camel:jackson' - template: - from: - uri: "azure-servicebus:{{topicOrQueueName}}" - parameters: - connectionString: "{{connectionString}}" - serviceBusReceiveMode: "{{serviceBusReceiveMode}}" - subscriptionName: "{{?subscriptionName}}" - steps: - - choice: - precondition: true - when: - - simple: '${properties:getBlob:true}' - steps: - - setBody: - simple: ${body.toString()} - - unmarshal: - json: - library: Jackson - unmarshalType: com.fasterxml.jackson.databind.JsonNode - - setProperty: - name: azure-storage-blob-event-type - jsonpath: $.eventType - - setProperty: - name: azure-storage-blob-subject - jsonpath: $.subject - - setProperty: - name: azure-storage-blob-blob-name - simple: '${exchangeProperty.azure-storage-blob-subject.substring(${exchangeProperty.azure-storage-blob-subject.lastIndexOf("/")}++)}' - - log: "${exchangeProperty.azure-storage-blob-event-type} - ${exchangeProperty.azure-storage-blob-subject} - ${exchangeProperty.azure-storage-blob-blob-name}" - - choice: - when: - - simple: '${exchangeProperty.azure-storage-blob-event-type} == "Microsoft.Storage.BlobCreated" && ${exchangeProperty.azure-storage-blob-subject} contains "{{containerName}}"' - steps: - - toD: >- - azure-storage-blob:{{accountName}}/{{containerName}}?accessKey=RAW({{accessKey}})&operation=getBlob&blobName=${exchangeProperty.azure-storage-blob-blob-name}&credentialType={{credentialType}} - - to: 'kamelet:sink' -