This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 2d92967a56e3225b29c3afbb028d71758c9db6b4 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Mar 30 14:43:06 2021 +0200 Added Minio Sink Kamelet --- .../ROOT/assets/images/kamelets/minio-sink.svg | 1 + docs/modules/ROOT/pages/minio-sink.adoc | 73 ++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/docs/modules/ROOT/assets/images/kamelets/minio-sink.svg b/docs/modules/ROOT/assets/images/kamelets/minio-sink.svg new file mode 100644 index 0000000..e928e78 --- /dev/null +++ b/docs/modules/ROOT/assets/images/kamelets/minio-sink.svg @@ -0,0 +1 @@ +<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 162.612 24.465"><path d="M52.751.414h9.108v23.63h-9.108zM41.711.74l-18.488 9.92a.919.919 0 0 1-.856 0L3.879.74A2.808 2.808 0 0 0 2.558.414h-.023A2.4 2.4 0 0 0 0 2.641v21.376h9.1V13.842a.918.918 0 0 1 1.385-.682l10.361 5.568a3.634 3.634 0 0 0 3.336.028l10.933-5.634a.917.917 0 0 1 1.371.69v10.205h9.1V2.641A2.4 2.4 0 0 0 43.055.414h-.023a2.808 2.808 0 0 0-1.321.326zm65.564-.326h-9.237v10.755a.913.913 0 0 1-1.338.706L72 [...] \ No newline at end of file diff --git a/docs/modules/ROOT/pages/minio-sink.adoc b/docs/modules/ROOT/pages/minio-sink.adoc new file mode 100644 index 0000000..1596986 --- /dev/null +++ b/docs/modules/ROOT/pages/minio-sink.adoc @@ -0,0 +1,73 @@ +// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT += image:kamelets/minio-sink.svg[] Minio Sink + +*Provided by: "Apache Software Foundation"* + +Upload data to Minio. + +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 `minio-sink` Kamelet: +[width="100%",cols="2,^2,3,^2,^2,^3",options="header"] +|=== +| Property| Name| Description| Type| Default| Example +| *accessKey {empty}* *| Access Key| The access key obtained from Minio| string| | +| *bucketName {empty}* *| Bucket Name| The Minio Bucket name| string| | +| *endpoint {empty}* *| Endpoint| The Minio Endpoint, it can be an URL, domain name, IPv4 address or IPv6 address.| string| | `"http://localhost:9000"` +| *secretKey {empty}* *| Secret Key| The secret key obtained from Minio| string| | +| autoCreateBucket| Autocreate bucket| Setting the autocreation of the S3 bucket bucketName.| boolean| `false`| +|=== + +NOTE: Fields marked with ({empty}*) are mandatory. + +== Usage + +This section summarizes how the `minio-sink` can be used in various contexts. + +=== Knative Sink + +The `minio-sink` Kamelet can be used as Knative sink by binding it to a Knative object. + +.minio-sink-binding.yaml +[source,yaml] +---- +apiVersion: camel.apache.org/v1alpha1 +kind: KameletBinding +metadata: + name: minio-sink-binding +spec: + source: + ref: + kind: InMemoryChannel + apiVersion: messaging.knative.dev/v1 + name: mychannel + sink: + ref: + kind: Kamelet + apiVersion: camel.apache.org/v1alpha1 + name: minio-sink + properties: + accessKey: "The Access Key" + bucketName: "The Bucket Name" + endpoint: "http://localhost:9000" + secretKey: "The Secret Key" + +---- + +Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to. + +Save the `minio-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 minio-sink-binding.yaml +---- +// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT