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 2022/10/07 09:12:01 UTC

[camel-kamelets] branch main updated (20c44fea -> 456fe1fe)

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

acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


    from 20c44fea Added some documentation in kafka not secured sink about headers deduplication
     new 20648224 Duplicate some of headers with a different name - AWS Kinesis Source
     new ff11e802 Duplicate some of headers with a different name - AWS Kinesis Source
     new eb4909c2 Duplicate some of headers with a different name - AWS Kinesis Source
     new a6ad43b0 Duplicate some of headers with a different name - AWS Kinesis Source
     new 456fe1fe Duplicate some of headers with a different name - AWS Kinesis Source

The 5 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:
 kamelets/aws-kinesis-source.kamelet.yaml                | 17 +++++++++++++++++
 .../resources/kamelets/aws-kinesis-source.kamelet.yaml  | 17 +++++++++++++++++
 2 files changed, 34 insertions(+)


[camel-kamelets] 03/05: Duplicate some of headers with a different name - AWS Kinesis Source

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit eb4909c2fe166e88fec9416f28efc5745521aa18
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 7 11:05:05 2022 +0200

    Duplicate some of headers with a different name - AWS Kinesis Source
---
 .../src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
index 4c9decdf..c840d26a 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
@@ -36,6 +36,8 @@ spec:
       The basic authentication method for the Kinesis service is to specify an access key and a secret key. These parameters are optional because the Kamelet provides a default credentials provider.
       
       If you use the default credentials provider, the Kinesis client loads the credentials through this provider and doesn't use the basic authentication method.
+
+      Two headers will be duplicated with different names for clarity at sink level, CamelAwsS3Key will be duplicated into aws.s3.key and CamelAwsS3BucketName will be duplicated in aws.s3.bucket.name
     required:
       - stream
       - region
@@ -109,7 +111,7 @@ spec:
           - key: mode
             value: 'filtering'
           - key: selectedHeaders
-            value: 'CamelAwsKinesisPartitionKey,CamelAwsKinesisShardId,CamelAwsKinesisSequenceNumber'
+            value: 'CamelAwsKinesisPartitionKey,CamelAwsKinesisSequenceNumber'
     from:
       uri: aws2-kinesis:{{stream}}
       parameters:


[camel-kamelets] 01/05: Duplicate some of headers with a different name - AWS Kinesis Source

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 20648224e6174a16c005532e677d644e2872ad20
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 7 11:00:44 2022 +0200

    Duplicate some of headers with a different name - AWS Kinesis Source
---
 kamelets/aws-kinesis-source.kamelet.yaml                  | 15 +++++++++++++++
 .../resources/kamelets/aws-kinesis-source.kamelet.yaml    | 15 +++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/kamelets/aws-kinesis-source.kamelet.yaml b/kamelets/aws-kinesis-source.kamelet.yaml
index bdd814a0..4c9decdf 100644
--- a/kamelets/aws-kinesis-source.kamelet.yaml
+++ b/kamelets/aws-kinesis-source.kamelet.yaml
@@ -96,7 +96,20 @@ spec:
     - "camel:aws2-kinesis"
     - "camel:kamelet"
     - "camel:core"
+    - "github:apache.camel-kamelets:camel-kamelets-utils:main-SNAPSHOT"
   template:
+    beans:
+      - name: duplicateHeaders
+        type: "#class:org.apache.camel.kamelets.utils.headers.DuplicateNamingHeaders"
+        property:
+          - key: prefix
+            value: 'CamelAwsKinesis'
+          - key: renamingPrefix
+            value: 'aws.kinesis.'
+          - key: mode
+            value: 'filtering'
+          - key: selectedHeaders
+            value: 'CamelAwsKinesisPartitionKey,CamelAwsKinesisShardId,CamelAwsKinesisSequenceNumber'
     from:
       uri: aws2-kinesis:{{stream}}
       parameters:
@@ -108,4 +121,6 @@ spec:
         overrideEndpoint: "{{overrideEndpoint}}"
         delay: "{{delay}}"
       steps:
+      - process:
+          ref: "{{duplicateHeaders}}"
       - to: "kamelet:sink"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
index bdd814a0..4c9decdf 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
@@ -96,7 +96,20 @@ spec:
     - "camel:aws2-kinesis"
     - "camel:kamelet"
     - "camel:core"
+    - "github:apache.camel-kamelets:camel-kamelets-utils:main-SNAPSHOT"
   template:
+    beans:
+      - name: duplicateHeaders
+        type: "#class:org.apache.camel.kamelets.utils.headers.DuplicateNamingHeaders"
+        property:
+          - key: prefix
+            value: 'CamelAwsKinesis'
+          - key: renamingPrefix
+            value: 'aws.kinesis.'
+          - key: mode
+            value: 'filtering'
+          - key: selectedHeaders
+            value: 'CamelAwsKinesisPartitionKey,CamelAwsKinesisShardId,CamelAwsKinesisSequenceNumber'
     from:
       uri: aws2-kinesis:{{stream}}
       parameters:
@@ -108,4 +121,6 @@ spec:
         overrideEndpoint: "{{overrideEndpoint}}"
         delay: "{{delay}}"
       steps:
+      - process:
+          ref: "{{duplicateHeaders}}"
       - to: "kamelet:sink"


[camel-kamelets] 05/05: Duplicate some of headers with a different name - AWS Kinesis Source

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 456fe1fedab910a74b22db0954420e2ce031dafe
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 7 11:07:02 2022 +0200

    Duplicate some of headers with a different name - AWS Kinesis Source
---
 .../src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
index c840d26a..f01113f0 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
       
       If you use the default credentials provider, the Kinesis client loads the credentials through this provider and doesn't use the basic authentication method.
 
-      Two headers will be duplicated with different names for clarity at sink level, CamelAwsS3Key will be duplicated into aws.s3.key and CamelAwsS3BucketName will be duplicated in aws.s3.bucket.name
+      Two headers will be duplicated with different names for clarity at sink level, CamelAwsKinesisPartitionKey will be duplicated into aws.kinesis.partition.key and CamelAwsKinesisSequenceNumber will be duplicated in aws.kinesis.sequence.number
     required:
       - stream
       - region


[camel-kamelets] 04/05: Duplicate some of headers with a different name - AWS Kinesis Source

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit a6ad43b02596e8b0ad7aab449f65d2080d629227
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 7 11:06:15 2022 +0200

    Duplicate some of headers with a different name - AWS Kinesis Source
---
 kamelets/aws-kinesis-source.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kamelets/aws-kinesis-source.kamelet.yaml b/kamelets/aws-kinesis-source.kamelet.yaml
index c840d26a..f01113f0 100644
--- a/kamelets/aws-kinesis-source.kamelet.yaml
+++ b/kamelets/aws-kinesis-source.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
       
       If you use the default credentials provider, the Kinesis client loads the credentials through this provider and doesn't use the basic authentication method.
 
-      Two headers will be duplicated with different names for clarity at sink level, CamelAwsS3Key will be duplicated into aws.s3.key and CamelAwsS3BucketName will be duplicated in aws.s3.bucket.name
+      Two headers will be duplicated with different names for clarity at sink level, CamelAwsKinesisPartitionKey will be duplicated into aws.kinesis.partition.key and CamelAwsKinesisSequenceNumber will be duplicated in aws.kinesis.sequence.number
     required:
       - stream
       - region


[camel-kamelets] 02/05: Duplicate some of headers with a different name - AWS Kinesis Source

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit ff11e8021e51bd68373d4d819b3b7d74c7a52518
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 7 11:04:17 2022 +0200

    Duplicate some of headers with a different name - AWS Kinesis Source
---
 kamelets/aws-kinesis-source.kamelet.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kamelets/aws-kinesis-source.kamelet.yaml b/kamelets/aws-kinesis-source.kamelet.yaml
index 4c9decdf..c840d26a 100644
--- a/kamelets/aws-kinesis-source.kamelet.yaml
+++ b/kamelets/aws-kinesis-source.kamelet.yaml
@@ -36,6 +36,8 @@ spec:
       The basic authentication method for the Kinesis service is to specify an access key and a secret key. These parameters are optional because the Kamelet provides a default credentials provider.
       
       If you use the default credentials provider, the Kinesis client loads the credentials through this provider and doesn't use the basic authentication method.
+
+      Two headers will be duplicated with different names for clarity at sink level, CamelAwsS3Key will be duplicated into aws.s3.key and CamelAwsS3BucketName will be duplicated in aws.s3.bucket.name
     required:
       - stream
       - region
@@ -109,7 +111,7 @@ spec:
           - key: mode
             value: 'filtering'
           - key: selectedHeaders
-            value: 'CamelAwsKinesisPartitionKey,CamelAwsKinesisShardId,CamelAwsKinesisSequenceNumber'
+            value: 'CamelAwsKinesisPartitionKey,CamelAwsKinesisSequenceNumber'
     from:
       uri: aws2-kinesis:{{stream}}
       parameters: