You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2021/04/12 16:17:45 UTC

[camel-kamelets] branch master updated (433eb38 -> 2004b5b)

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

nferraro pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.


    from 433eb38  Use to-d instead of tod for compatibility with 1.4
     new cc30aad  Added Azure Storage Blob Source Kamelet
     new 0fb34eb  Added Azure Storage Blob Source Kamelet
     new d474b84  Added Azure Storage Blob Source Kamelet
     new 2004b5b  Added Azure Storage Blob Source Kamelet

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 ....yaml => azure-storage-blob-source.kamelet.yaml | 60 +++++++++-------------
 ...blob-sink.svg => azure-storage-blob-source.svg} |  0
 docs/modules/ROOT/nav.adoc                         |  1 +
 ...ob-sink.adoc => azure-storage-blob-source.adoc} | 42 +++++++--------
 4 files changed, 44 insertions(+), 59 deletions(-)
 copy azure-storage-blob-sink.kamelet.yaml => azure-storage-blob-source.kamelet.yaml (79%)
 copy docs/modules/ROOT/assets/images/kamelets/{azure-storage-blob-sink.svg => azure-storage-blob-source.svg} (100%)
 copy docs/modules/ROOT/pages/{azure-storage-blob-sink.adoc => azure-storage-blob-source.adoc} (57%)

[camel-kamelets] 02/04: Added Azure Storage Blob Source Kamelet

Posted by nf...@apache.org.
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 0fb34ebb09c394e62fe39bfaecfececac4180a75
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Apr 12 17:53:36 2021 +0200

    Added Azure Storage Blob Source Kamelet
---
 docs/modules/ROOT/nav.adoc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 9f79cad..ccac4d9 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -11,6 +11,7 @@
 * xref:ROOT:aws-sqs-sink.adoc[image:kamelets/aws-sqs-sink.svg[] AWS SQS Sink]
 * xref:ROOT:aws-sqs-source.adoc[image:kamelets/aws-sqs-source.svg[] AWS SQS Source]
 * xref:ROOT:azure-storage-blob-sink.adoc[image:kamelets/azure-storage-blob-sink.svg[] Azure Storage Blob Sink]
+* xref:ROOT:azure-storage-blob-source.adoc[image:kamelets/azure-storage-blob-source.svg[] Azure Storage Blob Source]
 * xref:ROOT:bitcoin-source.adoc[image:kamelets/bitcoin-source.svg[] Bitcoin Source]
 * xref:ROOT:dropbox-sink.adoc[image:kamelets/dropbox-sink.svg[] Dropbox Sink]
 * xref:ROOT:dropbox-source.adoc[image:kamelets/dropbox-source.svg[] Dropbox Source]

[camel-kamelets] 01/04: Added Azure Storage Blob Source Kamelet

Posted by nf...@apache.org.
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 cc30aade2626b1777d3fb7a5163421cd1ac1e9d4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Apr 12 17:53:04 2021 +0200

    Added Azure Storage Blob Source Kamelet
---
 azure-storage-blob-source.kamelet.yaml | 60 ++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/azure-storage-blob-source.kamelet.yaml b/azure-storage-blob-source.kamelet.yaml
new file mode 100644
index 0000000..ef013e6
--- /dev/null
+++ b/azure-storage-blob-source.kamelet.yaml
@@ -0,0 +1,60 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: azure-storage-blob-source
+  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: "source"
+spec:
+  definition:
+    title: "Azure Storage Blob Source"
+    description: |-
+      Consume Files from Azure Storage Blob.
+    required:
+      - period
+      - accountName
+      - containerName
+      - accessKey
+    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
+      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
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+  flow:
+    from:
+      uri: "timer:azure-storage-blob-stream"
+      parameters:
+        period: "{{period}}"
+      steps:
+      - to:
+          uri: "azure-storage-blob:{{accountName}}/{{containerName}}"
+          parameters:
+            operation: "listBlobs"
+            accessKey: "{{accessKey}}"
+      - split:
+          jsonpath: "$.*"
+          steps:
+          - set-property:
+              name: azureBlobName
+              simple: ${body.name}
+          - tod: "azure-storage-blob:{{accountName}}/{{containerName}}?accessKey=RAW({{accessKey}})&operation=getBlob&blobName=${exchangeProperty.azureBlobName}"
+          - to: "kamelet:sink"
+          - tod: "azure-storage-blob:{{accountName}}/{{containerName}}?accessKey=RAW({{accessKey}})&operation=deleteBlob&blobName=${exchangeProperty.azureBlobName}"
+

[camel-kamelets] 03/04: Added Azure Storage Blob Source Kamelet

Posted by nf...@apache.org.
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 d474b84dc66ae53fd5fbcee244839369e3dabcd4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Apr 12 17:53:49 2021 +0200

    Added Azure Storage Blob Source Kamelet
---
 .../images/kamelets/azure-storage-blob-source.svg  |  1 +
 .../ROOT/pages/azure-storage-blob-source.adoc      | 65 ++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/azure-storage-blob-source.svg b/docs/modules/ROOT/assets/images/kamelets/azure-storage-blob-source.svg
new file mode 100644
index 0000000..5065cb0
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/azure-storage-blob-source.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 91 81" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round"><use xlink:href="#A" x=".5" y=".5"/><symbol id="A" overflow="visible"><path d="M67.558 0H22.441L0 40l22.441 40h45.117L90 40 67.558 0zm.234 57.964c0 3.353-2.805 6.227-6.078 6.227H28.52c-3.273 0-6.078-2.874-6.078-6.227V22.276c0-3.353 2.805-6.228 6.078-6.228h29.922l9.351 9.581v32.335zM41.61 46.467c [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/azure-storage-blob-source.adoc b/docs/modules/ROOT/pages/azure-storage-blob-source.adoc
new file mode 100644
index 0000000..703d9a7
--- /dev/null
+++ b/docs/modules/ROOT/pages/azure-storage-blob-source.adoc
@@ -0,0 +1,65 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/azure-storage-blob-source.svg[] Azure Storage Blob Source
+
+*Provided by: "Apache Software Foundation"*
+
+Consume Files from Azure Storage Blob.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `azure-storage-blob-source` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *accessKey {empty}* *| Access Key| The Azure Storage Blob access Key.| string| | 
+| *accountName {empty}* *| Account Name| The Azure Storage Blob account name.| string| | 
+| *containerName {empty}* *| Container Name| The Azure Storage Blob container name.| string| | 
+| *period {empty}* *| Period between polls| The interval between fetches to the Azure Storage Container in milliseconds| integer| `10000`| 
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `azure-storage-blob-source` can be used in various contexts.
+
+=== Knative Source
+
+The `azure-storage-blob-source` Kamelet can be used as Knative source by binding it to a Knative object.
+
+.azure-storage-blob-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: azure-storage-blob-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: azure-storage-blob-source
+    properties:
+      accessKey: "The Access Key"
+      accountName: "The Account Name"
+      containerName: "The Container Name"
+  sink:
+    ref:
+      kind: InMemoryChannel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+
+----
+
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `azure-storage-blob-source-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the source using the following command:
+
+[source,shell]
+----
+kubectl apply -f azure-storage-blob-source-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 04/04: Added Azure Storage Blob Source Kamelet

Posted by nf...@apache.org.
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 2004b5b508d7490bd6bd1422339afac545fb8c4a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Apr 12 18:12:46 2021 +0200

    Added Azure Storage Blob Source Kamelet
---
 azure-storage-blob-source.kamelet.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/azure-storage-blob-source.kamelet.yaml b/azure-storage-blob-source.kamelet.yaml
index ef013e6..93aa156 100644
--- a/azure-storage-blob-source.kamelet.yaml
+++ b/azure-storage-blob-source.kamelet.yaml
@@ -54,7 +54,7 @@ spec:
           - set-property:
               name: azureBlobName
               simple: ${body.name}
-          - tod: "azure-storage-blob:{{accountName}}/{{containerName}}?accessKey=RAW({{accessKey}})&operation=getBlob&blobName=${exchangeProperty.azureBlobName}"
+          - to-d: "azure-storage-blob:{{accountName}}/{{containerName}}?accessKey=RAW({{accessKey}})&operation=getBlob&blobName=${exchangeProperty.azureBlobName}"
           - to: "kamelet:sink"
-          - tod: "azure-storage-blob:{{accountName}}/{{containerName}}?accessKey=RAW({{accessKey}})&operation=deleteBlob&blobName=${exchangeProperty.azureBlobName}"
+          - to-d: "azure-storage-blob:{{accountName}}/{{containerName}}?accessKey=RAW({{accessKey}})&operation=deleteBlob&blobName=${exchangeProperty.azureBlobName}"