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/12/14 09:24:49 UTC

[camel-kamelets] 01/02: Camel Google Pubsub headers names changed in Camel 3.20.0

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

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

commit e8fbee854f9568933e8261fbcc990f672f399540
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Dec 14 10:23:25 2022 +0100

    Camel Google Pubsub headers names changed in Camel 3.20.0
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/google-storage-cdc-source.kamelet.yaml | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/kamelets/google-storage-cdc-source.kamelet.yaml b/kamelets/google-storage-cdc-source.kamelet.yaml
index 1a1b45d0..ecdca3db 100644
--- a/kamelets/google-storage-cdc-source.kamelet.yaml
+++ b/kamelets/google-storage-cdc-source.kamelet.yaml
@@ -108,18 +108,15 @@ spec:
             when:
               - simple: '${properties:getObject:true}'
                 steps:
-                  - set-header:
-                      name: attributesStorage
-                      simple: ${headers.CamelGooglePubsub.Attributes}
                   - set-property:
                       name: google-storage-event-type
-                      simple: "${headers.attributesStorage[eventType]}"
+                      simple: "${headers.CamelGooglePubsubAttributes[eventType]}"
                   - set-property:
                       name: google-storage-object-id
-                      simple: "${headers.attributesStorage[objectId]}"
+                      simple: "${headers.CamelGooglePubsubAttributes[objectId]}"
                   - set-property:
                       name: google-storage-bucket-id
-                      simple: "${headers.attributesStorage[bucketId]}"
+                      simple: "${headers.CamelGooglePubsubAttributes[bucketId]}"
                   - choice:
                       when:
                         - simple: '${exchangeProperty.google-storage-event-type} == "OBJECT_FINALIZE" && ${exchangeProperty.google-storage-bucket-id} == "{{bucketNameOrArn}}"'