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:07:15 UTC

[camel-kamelets] branch aws-kinesis-dup-headers created (now 9ffe3bdb)

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

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


      at 9ffe3bdb Duplicate some of headers with a different name - AWS Kinesis Source

This branch includes the following new commits:

     new 51a2e476 Duplicate some of headers with a different name - AWS Kinesis Source
     new abd8aa19 Duplicate some of headers with a different name - AWS Kinesis Source
     new 1d51aa06 Duplicate some of headers with a different name - AWS Kinesis Source
     new 6518ae93 Duplicate some of headers with a different name - AWS Kinesis Source
     new 9ffe3bdb 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.



[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 aws-kinesis-dup-headers
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 51a2e476d094a0cc17c4ff21d4cdb15cbc64c844
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] 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 aws-kinesis-dup-headers
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 1d51aa062c20369afb5803069e434af7deb41c6c
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] 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 aws-kinesis-dup-headers
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 6518ae9390e06dc3cf8f5edb64951e284e5a54f3
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 aws-kinesis-dup-headers
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit abd8aa19622971c33cf2527f8d4a4dd02c222c2f
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:


[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 aws-kinesis-dup-headers
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 9ffe3bdbf5c4c43d95f1f1202c8e1fa441568cbd
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