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 2021/04/12 11:29:18 UTC

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

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

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

commit fbc7b87870475c66d62714cbb07c706073555440
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