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 2022/03/18 12:59:51 UTC

[camel-kamelets] 01/05: Add Azure Storage Blob Changefeed Source Kamelet

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

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

commit 4ffd138d93157778cd9581ba75ffe44e7d909c84
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 18 13:46:43 2022 +0100

    Add Azure Storage Blob Changefeed Source Kamelet
---
 ...ure-storage-blob-changefeed-source.kamelet.yaml | 77 ++++++++++++++++++++++
 1 file changed, 77 insertions(+)

diff --git a/kamelets/azure-storage-blob-changefeed-source.kamelet.yaml b/kamelets/azure-storage-blob-changefeed-source.kamelet.yaml
new file mode 100644
index 0000000..ea2c966
--- /dev/null
+++ b/kamelets/azure-storage-blob-changefeed-source.kamelet.yaml
@@ -0,0 +1,77 @@
+# ---------------------------------------------------------------------------
+# 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/v1alpha1
+kind: Kamelet
+metadata:
+  name: azure-storage-blob-changefeed-source
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgOTEgODEiIGZpbGw9IiNmZmYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjx1c2UgeGxpbms6aHJlZj0iI0EiIHg9Ii41IiB5PSIuNSIvPjxzeW1ib2wgaWQ9IkEiIG92ZXJmbG93PSJ2aXNpYmxlIj48cGF0aCBkPSJNNjcuNTU4IDBIMjIuNDQxTDAgNDBsMjIuNDQxIDQwaDQ1LjExN0w5MCA0MCA2Ny [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Azure Storage Blob Changefeed"
+  labels:
+    camel.apache.org/kamelet.type: "source"
+spec:
+  definition:
+    title: "Azure Storage Blob Changefeed Source"
+    description: |-
+      Consume Events from Azure Storage Blob Changefeed.
+    required:
+      - period
+      - accountName
+      - accessKey
+    type: object
+    properties:
+      period:
+        title: Period between Polls
+        description: The interval between fetches to the Azure Storage Container in milliseconds
+        type: integer
+        default: 10000
+      accountName:
+        title: Account Name
+        description: The Azure Storage Blob account name.
+        type: string
+        x-descriptors:
+        - urn:camel:group:credentials
+      accessKey:
+        title: Access Key
+        description: The Azure Storage Blob access Key.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+        - urn:camel:group:credentials
+  dependencies:
+    - "camel:azure-storage-blob"
+    - "camel:kamelet"
+    - "camel:core"
+    - "camel:jsonpath"
+    - "camel:timer"
+  template:
+    from:
+      uri: "timer:azure-storage-blob-stream"
+      parameters:
+        period: "{{period}}"
+      steps:
+      - to:
+          uri: "azure-storage-blob:{{accountName}}"
+          parameters:
+            operation: "getChangeFeed"
+            accessKey: "{{accessKey}}"
+      - to: "kamelet:sink"