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 14:09:17 UTC

[camel-kamelets] branch master updated (ab42bdf -> 9e07f30)

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 ab42bdf  SFTP Source Kamelet improved
     new 80e6438  Added Azure Storage Blob Sink Kamelet
     new ce7bbca  Added Azure Storage Blob Sink Kamelet
     new 52a98a4  Added Azure Storage Blob Sink Kamelet
     new 9e07f30  Added Azure Storage Blob Sink 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:
 azure-storage-blob-sink.kamelet.yaml               | 70 ++++++++++++++++++++++
 .../images/kamelets/azure-storage-blob-sink.svg    |  1 +
 docs/modules/ROOT/nav.adoc                         |  1 +
 ...inio-sink.adoc => azure-storage-blob-sink.adoc} | 34 +++++------
 4 files changed, 88 insertions(+), 18 deletions(-)
 create mode 100644 azure-storage-blob-sink.kamelet.yaml
 create mode 100644 docs/modules/ROOT/assets/images/kamelets/azure-storage-blob-sink.svg
 copy docs/modules/ROOT/pages/{minio-sink.adoc => azure-storage-blob-sink.adoc} (51%)

[camel-kamelets] 02/04: Added Azure Storage Blob Sink 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 ce7bbca7bc20153f5097182dde4e8a1f3356f641
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Apr 12 13:27:36 2021 +0200

    Added Azure Storage Blob Sink Kamelet
---
 azure-storage-blob-sink.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/azure-storage-blob-sink.kamelet.yaml b/azure-storage-blob-sink.kamelet.yaml
index 9effece..66fa830 100644
--- a/azure-storage-blob-sink.kamelet.yaml
+++ b/azure-storage-blob-sink.kamelet.yaml
@@ -3,7 +3,7 @@ kind: Kamelet
 metadata:
   name: azure-storage-blob-sink
   annotations:
-    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyNDguMiAzMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3QyOHtmaWxsOiM4YzMxMjN9LnN0Mjl7ZmlsbDojZTA1MjQzfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MjgiIGQ9Ik0yMCA1Mi4xTDAgNjJ2MTc1LjVsMjAgOS45LjEtLjFWNTIuMmwtLjEtLjEiLz48cGF0aCBjbGFzcz0ic3QyOSIgZD0iTTEyNyAyMjJMMjAgMjQ3LjVWNTIuMUwxMjcgNzd2MTQ1Ii8+PHBhdGggY2xhc3M9InN0MjgiIG [...]
+    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"

[camel-kamelets] 01/04: Added Azure Storage Blob Sink 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 80e6438091c5db0a013fc5771d55ed8fe8b9a68c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Apr 12 11:15:36 2021 +0200

    Added Azure Storage Blob Sink Kamelet
---
 azure-storage-blob-sink.kamelet.yaml | 70 ++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

diff --git a/azure-storage-blob-sink.kamelet.yaml b/azure-storage-blob-sink.kamelet.yaml
new file mode 100644
index 0000000..9effece
--- /dev/null
+++ b/azure-storage-blob-sink.kamelet.yaml
@@ -0,0 +1,70 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: azure-storage-blob-sink
+  annotations:
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyNDguMiAzMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3QyOHtmaWxsOiM4YzMxMjN9LnN0Mjl7ZmlsbDojZTA1MjQzfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MjgiIGQ9Ik0yMCA1Mi4xTDAgNjJ2MTc1LjVsMjAgOS45LjEtLjFWNTIuMmwtLjEtLjEiLz48cGF0aCBjbGFzcz0ic3QyOSIgZD0iTTEyNyAyMjJMMjAgMjQ3LjVWNTIuMUwxMjcgNzd2MTQ1Ii8+PHBhdGggY2xhc3M9InN0MjgiIG [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+  labels:
+    camel.apache.org/kamelet.type: "sink"
+spec:
+  definition:
+    title: "Azure Storage Blob Sink"
+    description: |-
+      Upload data to Azure Storage Blob.
+
+      The Kamelet expects the following headers to be set:
+
+      - `file` / `ce-file`: as the file name to upload
+
+      If the header won't be set the exchange ID will be used as file name.
+    required:
+      - accountName
+      - containerName
+      - accessKey
+    properties:
+      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
+      operation:
+        title: Operation name
+        description: The operation to perform.
+        type: string
+        default: uploadBlockBlob
+  flow:
+    from:
+      uri: "kamelet:source"
+      steps:
+      - choice:
+          when:
+          - simple: "${header[file]}"
+            steps:
+            - set-header:
+                name: CamelAzureStorageBlobBlobName
+                simple: "${header[file]}"
+          - simple: "${header[ce-file]}"
+            steps:
+            - set-header:
+                name: CamelAzureStorageBlobBlobName
+                simple: "${header[ce-file]}"
+          otherwise:
+            steps:
+            - set-header:
+                name: CamelAzureStorageBlobBlobName
+                simple: "${exchangeId}"
+      - to:
+          uri: "azure-storage-blob://{{accountName}}/{{containerName}}"
+          parameters:
+            accessKey: "{{accessKey}}"
+            operation: "{{operation}}"

[camel-kamelets] 03/04: Added Azure Storage Blob Sink 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 52a98a44da5710ed4d868f467e491d3dbaeacf4a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Apr 12 13:28:40 2021 +0200

    Added Azure Storage Blob Sink 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 d282f0d..9f79cad 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -10,6 +10,7 @@
 * xref:ROOT:aws-sqs-fifo-sink.adoc[image:kamelets/aws-sqs-fifo-sink.svg[] AWS SQS FIFO Sink]
 * 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: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] 04/04: Added Azure Storage Blob Sink 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 9e07f3026422ee5cbfad3aec8769d7027e9f3e07
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Apr 12 13:28:53 2021 +0200

    Added Azure Storage Blob Sink Kamelet
---
 .../images/kamelets/azure-storage-blob-sink.svg    |  1 +
 .../ROOT/pages/azure-storage-blob-sink.adoc        | 71 ++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/azure-storage-blob-sink.svg b/docs/modules/ROOT/assets/images/kamelets/azure-storage-blob-sink.svg
new file mode 100644
index 0000000..5065cb0
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/azure-storage-blob-sink.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-sink.adoc b/docs/modules/ROOT/pages/azure-storage-blob-sink.adoc
new file mode 100644
index 0000000..64c5077
--- /dev/null
+++ b/docs/modules/ROOT/pages/azure-storage-blob-sink.adoc
@@ -0,0 +1,71 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/azure-storage-blob-sink.svg[] Azure Storage Blob Sink
+
+*Provided by: "Apache Software Foundation"*
+
+Upload data to Azure Storage Blob.
+
+The Kamelet expects the following headers to be set:
+
+- `file` / `ce-file`: as the file name to upload
+
+If the header won't be set the exchange ID will be used as file name.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `azure-storage-blob-sink` 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| | 
+| operation| Operation name| The operation to perform.| string| `"uploadBlockBlob"`| 
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `azure-storage-blob-sink` can be used in various contexts.
+
+=== Knative Sink
+
+The `azure-storage-blob-sink` Kamelet can be used as Knative sink by binding it to a Knative object.
+
+.azure-storage-blob-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: azure-storage-blob-sink-binding
+spec:
+  source:
+    ref:
+      kind: InMemoryChannel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+  sink:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: azure-storage-blob-sink
+    properties:
+      accessKey: "The Access Key"
+      accountName: "The Account Name"
+      containerName: "The Container Name"
+
+----
+
+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-sink-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the sink using the following command:
+
+[source,shell]
+----
+kubectl apply -f azure-storage-blob-sink-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT