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/07/30 06:23:52 UTC
[camel-kamelets] branch s3-and-regen created (now 25609d4)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch s3-and-regen
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.
at 25609d4 Regen docs
This branch includes the following new commits:
new 0737d95 AWS S3 Streaming upload: set the example batch size as a string
new 25bc476 AWS S3 Streaming upload: set the example batch size as a string
new d3163fa Log Sink Kamelet: Added Kamelet group
new 9017267 Log Sink Kamelet: Added Kamelet group
new fb88722 Regen docs
new 25609d4 Regen docs
The 6 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.
[camel-kamelets] 05/06: Regen docs
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch s3-and-regen
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit fb887226f4b2f2d830b9442bb38f75634b47944b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jul 30 08:22:29 2021 +0200
Regen docs
---
docs/modules/ROOT/nav.adoc | 1 +
docs/modules/ROOT/pages/aws-s3-streaming-upload-sink.adoc | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index aa26b9e..625ea16 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -78,6 +78,7 @@
* xref:ROOT:kafka-not-secured-source.adoc[image:kamelets/kafka-not-secured-source.svg[] Kafka Not Secured Source]
* xref:ROOT:kafka-sink.adoc[image:kamelets/kafka-sink.svg[] Kafka Sink]
* xref:ROOT:kafka-source.adoc[image:kamelets/kafka-source.svg[] Kafka Source]
+* xref:ROOT:log-sink.adoc[image:kamelets/log-sink.svg[] Log Sink]
* xref:ROOT:mail-imap-source.adoc[image:kamelets/mail-imap-source.svg[] Mail IMAP Source]
* xref:ROOT:mariadb-sink.adoc[image:kamelets/mariadb-sink.svg[] MariaDB Sink]
* xref:ROOT:mariadb-source.adoc[image:kamelets/mariadb-source.svg[] MariaDB Source]
diff --git a/docs/modules/ROOT/pages/aws-s3-streaming-upload-sink.adoc b/docs/modules/ROOT/pages/aws-s3-streaming-upload-sink.adoc
index 0b94ce2..6ac056a 100644
--- a/docs/modules/ROOT/pages/aws-s3-streaming-upload-sink.adoc
+++ b/docs/modules/ROOT/pages/aws-s3-streaming-upload-sink.adoc
@@ -20,7 +20,7 @@ The following table summarizes the configuration options available for the `aws-
| *secretKey {empty}* *| Secret Key| The secret key obtained from AWS.| string| |
| autoCreateBucket| Autocreate Bucket| Setting the autocreation of the S3 bucket bucketName.| boolean| `false`|
| batchMessageNumber| Batch Message Number| The number of messages composing a batch in streaming upload mode| int| `10`|
-| batchSize| Batch Size| The batch size (in bytes) in streaming upload mode| int| `1000000`|
+| batchSize| Batch Size| The batch size (in bytes) in streaming upload mode| int| `"1000000"`|
| namingStrategy| Naming Strategy| The naming strategy to use in streaming upload mode. There are 2 enums and the value can be one of progressive, random| string| `"progressive"`|
| restartingPolicy| Restarting Policy| The restarting policy to use in streaming upload mode. There are 2 enums and the value can be one of override, lastPart| string| `"lastPart"`|
| streamingUploadMode| Streaming Upload Mode| Setting the Streaming Upload Mode| boolean| `true`|
[camel-kamelets] 02/06: AWS S3 Streaming upload: set the example
batch size as a string
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch s3-and-regen
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 25bc476fe27601502165f89866f7b958ef2b0d49
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jul 30 08:20:12 2021 +0200
AWS S3 Streaming upload: set the example batch size as a string
---
.../main/resources/kamelets/aws-s3-streaming-upload-sink.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-streaming-upload-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-streaming-upload-sink.kamelet.yaml
index 0ae6fec..e806b74 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-streaming-upload-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-streaming-upload-sink.kamelet.yaml
@@ -74,7 +74,7 @@ spec:
title: Batch Size
description: The batch size (in bytes) in streaming upload mode
type: int
- default: 1000000
+ default: '1000000'
namingStrategy:
title: Naming Strategy
description: The naming strategy to use in streaming upload mode. There are 2 enums and the value can be one of progressive, random
[camel-kamelets] 03/06: Log Sink Kamelet: Added Kamelet group
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch s3-and-regen
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit d3163fa3cf639b113163c9f8b6156f2b86a6c3c2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jul 30 08:20:56 2021 +0200
Log Sink Kamelet: Added Kamelet group
---
log-sink.kamelet.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/log-sink.kamelet.yaml b/log-sink.kamelet.yaml
index 421f2ba..48d64b3 100644
--- a/log-sink.kamelet.yaml
+++ b/log-sink.kamelet.yaml
@@ -7,6 +7,7 @@ metadata:
camel.apache.org/catalog.version: "main-SNAPSHOT"
camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodH [...]
camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "Logging"
labels:
camel.apache.org/kamelet.type: "sink"
spec:
[camel-kamelets] 01/06: AWS S3 Streaming upload: set the example
batch size as a string
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch s3-and-regen
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 0737d953b152ba8f8c560ca807f88bd336ad38a7
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jul 30 08:18:19 2021 +0200
AWS S3 Streaming upload: set the example batch size as a string
---
aws-s3-streaming-upload-sink.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aws-s3-streaming-upload-sink.kamelet.yaml b/aws-s3-streaming-upload-sink.kamelet.yaml
index 0ae6fec..e806b74 100644
--- a/aws-s3-streaming-upload-sink.kamelet.yaml
+++ b/aws-s3-streaming-upload-sink.kamelet.yaml
@@ -74,7 +74,7 @@ spec:
title: Batch Size
description: The batch size (in bytes) in streaming upload mode
type: int
- default: 1000000
+ default: '1000000'
namingStrategy:
title: Naming Strategy
description: The naming strategy to use in streaming upload mode. There are 2 enums and the value can be one of progressive, random
[camel-kamelets] 06/06: Regen docs
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch s3-and-regen
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 25609d4256830a60d8979f8d61d88f3abb3f722c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jul 30 08:22:59 2021 +0200
Regen docs
---
.../ROOT/assets/images/kamelets/log-sink.svg | 41 +++++++
docs/modules/ROOT/pages/log-sink.adoc | 121 +++++++++++++++++++++
2 files changed, 162 insertions(+)
diff --git a/docs/modules/ROOT/assets/images/kamelets/log-sink.svg b/docs/modules/ROOT/assets/images/kamelets/log-sink.svg
new file mode 100644
index 0000000..eb7ab89
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/log-sink.svg
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
+<g>
+ <path d="M448,0H64C46.328,0,32,14.313,32,32v448c0,17.688,14.328,32,32,32h384c17.688,0,32-14.312,32-32V32
+ C480,14.313,465.688,0,448,0z M64,480V128h80v64H96v16h48v48H96v16h48v48H96v16h48v48H96v16h48v80H64z M448,480H160v-80h256v-16
+ H160v-48h256v-16H160v-48h256v-16H160v-48h256v-16H160v-64h288V480z"/>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+<g>
+</g>
+</svg>
diff --git a/docs/modules/ROOT/pages/log-sink.adoc b/docs/modules/ROOT/pages/log-sink.adoc
new file mode 100644
index 0000000..c0d1b51
--- /dev/null
+++ b/docs/modules/ROOT/pages/log-sink.adoc
@@ -0,0 +1,121 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/log-sink.svg[] Log Sink
+
+*Provided by: "Apache Software Foundation"*
+
+*Support Level for this Kamelet is: "Preview"*
+
+A sink that logs all data that it receives, useful for debugging purposes.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `log-sink` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| showHeaders| Show Headers| Show the headers received| boolean| `false`|
+| showStreams| Show Streams| Show the stream bodies (they may not be available in following steps)| boolean| `false`|
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `log-sink` can be used in various contexts.
+
+=== Knative Sink
+
+The `log-sink` Kamelet can be used as Knative sink by binding it to a Knative object.
+
+.log-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: log-sink-binding
+spec:
+ source:
+ ref:
+ kind: InMemoryChannel
+ apiVersion: messaging.knative.dev/v1
+ name: mychannel
+ sink:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: log-sink
+
+----
+
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `log-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 log-sink-binding.yaml
+----
+
+==== *Binding to Knative using the Kamel CLI:*
+
+The procedure described above can be simplified into a single execution of the `kamel bind` command:
+
+[source,shell]
+----
+kamel bind channel/mychannel log-sink
+----
+
+This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
+
+=== Kafka Sink
+
+The `log-sink` Kamelet can be used as Kafka sink by binding it to a Kafka topic.
+
+.log-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: log-sink-binding
+spec:
+ source:
+ ref:
+ kind: KafkaTopic
+ apiVersion: kafka.strimzi.io/v1beta1
+ name: my-topic
+ sink:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: log-sink
+
+----
+
+Ensure that you've installed https://strimzi.io/[Strimzi] and created a topic named `my-topic` in the current namespace.
+Make also sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `log-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 log-sink-binding.yaml
+----
+
+==== *Binding to Kafka using the Kamel CLI:*
+
+The procedure described above can be simplified into a single execution of the `kamel bind` command:
+
+[source,shell]
+----
+kamel bind kafka.strimzi.io/v1beta1:KafkaTopic:my-topic log-sink
+----
+
+This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
+
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
[camel-kamelets] 04/06: Log Sink Kamelet: Added Kamelet group
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch s3-and-regen
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 9017267a8f9a88685a45cdb061d811340becc9ce
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jul 30 08:21:30 2021 +0200
Log Sink Kamelet: Added Kamelet group
---
library/camel-kamelets/src/main/resources/kamelets/log-sink.kamelet.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/log-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/log-sink.kamelet.yaml
index 421f2ba..48d64b3 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/log-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/log-sink.kamelet.yaml
@@ -7,6 +7,7 @@ metadata:
camel.apache.org/catalog.version: "main-SNAPSHOT"
camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodH [...]
camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "Logging"
labels:
camel.apache.org/kamelet.type: "sink"
spec: