This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch minio-kamelet in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit fea6f5b8c2811d2d6fbfb65c056c58bc9e1e3fd5 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed Feb 24 17:05:34 2021 +0100 Added Minio Kamelet source --- docs/modules/ROOT/nav.adoc | 1 + docs/modules/ROOT/pages/minio-source.adoc | 64 +++++++++++++++++++++++++++++++ minio-source.kamelet.yaml | 2 +- 3 files changed, 66 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc index 3fa086a..478c47c 100644 --- a/docs/modules/ROOT/nav.adoc +++ b/docs/modules/ROOT/nav.adoc @@ -5,6 +5,7 @@ * xref:ROOT:bitcoin-source.adoc[image:kamelets/bitcoin-source.svg[] Bitcoin Source] * xref:ROOT:http-source.adoc[image:kamelets/http-source.svg[] HTTP Source] * xref:ROOT:jira-source.adoc[image:kamelets/jira-source.svg[] Jira Source] +* xref:ROOT:minio-source.adoc[image:kamelets/minio-source.svg[] Minio Source] * xref:ROOT:mqtt-source.adoc[image:kamelets/mqtt-source.svg[] MQTT Source] * xref:ROOT:salesforce-source.adoc[image:kamelets/salesforce-source.svg[] Salesforce Source] * xref:ROOT:slack-source.adoc[image:kamelets/slack-source.svg[] Slack Source] diff --git a/docs/modules/ROOT/pages/minio-source.adoc b/docs/modules/ROOT/pages/minio-source.adoc new file mode 100644 index 0000000..1f5506e --- /dev/null +++ b/docs/modules/ROOT/pages/minio-source.adoc @@ -0,0 +1,64 @@ +// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT += image:kamelets/minio-source.svg[] Minio Source + +*Provided by: "Apache Software Foundation"* + +Receive data from Minio. + +== Configuration Options + +The following table summarizes the configuration options available for the `minio-source` 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| | +| *secretKey {empty}* *| Secret Key| The secret key obtained from Minio| string| | +| bucketNameOrArn| Bucket Name| The Minio Bucket name| string| | +| deleteAfterRead| Auto-delete objects| Delete objects after consuming them| boolean| `true`| +|=== + +NOTE: Fields marked with ({empty}*) are mandatory. + +== Usage + +This section summarizes how the `minio-source` can be used in various contexts. + +=== Knative Source + +The `minio-source` Kamelet can be used as Knative source by binding it to a Knative object. + +.minio-source-binding.yaml +[source,yaml] +---- +apiVersion: camel.apache.org/v1alpha1 +kind: KameletBinding +metadata: + name: minio-source-binding +spec: + source: + ref: + kind: Kamelet + apiVersion: camel.apache.org/v1alpha1 + name: minio-source + properties: + accessKey: "The Access Key" + secretKey: "The Secret Key" + 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 `minio-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 minio-source-binding.yaml +---- +// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT diff --git a/minio-source.kamelet.yaml b/minio-source.kamelet.yaml index a989317..84ba075 100644 --- a/minio-source.kamelet.yaml +++ b/minio-source.kamelet.yaml @@ -3,7 +3,7 @@ kind: Kamelet metadata: name: minio-source annotations: - camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyNDguMiAzMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3QyOHtmaWxsOiM4YzMxMjN9LnN0Mjl7ZmlsbDojZTA1MjQzfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MjgiIGQ9Ik0yMCA1Mi4xTDAgNjJ2MTc1LjVsMjAgOS45LjEtLjFWNTIuMmwtLjEtLjEiLz48cGF0aCBjbGFzcz0ic3QyOSIgZD0iTTEyNyAyMjJMMjAgMjQ3LjVWNTIuMUwxMjcgNzd2MTQ1Ii8+PHBhdGggY2xhc3M9InN0MjgiIG [...] + camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBkYXRhLW5hbWU9IkxheWVyIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDE2Mi42MTIgMjQuNDY1Ij48cGF0aCBkPSJNNTIuNzUxLjQxNGg5LjEwOHYyMy42M2gtOS4xMDh6TTQxLjcxMS43NGwtMTguNDg4IDkuOTJhLjkxOS45MTkgMCAwIDEtLjg1NiAwTDMuODc5Ljc0QTIuODA4IDIuODA4IDAgMCAwIDIuNTU4LjQxNGgtLjAyM0EyLjQgMi40IDAgMCAwIDAgMi42NDF2MjEuMzc2aDkuMVYxMy44NDJhLjkxOC45MTggMCAwIDEgMS4zODUtLjY4MmwxMC4zNjEgNS41NjhhMy42MzQgMy42MzQgMCAwIDAgMy4zMzYuMD [...] camel.apache.org/provider: "Apache Software Foundation" labels: camel.apache.org/kamelet.type: "source"