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 2023/05/25 12:41:52 UTC

[camel-kamelets] 03/10: Bean: Use properties instead of property with key and value - Kafka Source

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

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

commit e0d6f146a18a1888847f5f36736782fcf07936e8
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 25 14:22:48 2023 +0200

    Bean: Use properties instead of property with key and value - Kafka Source
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/kafka-source.kamelet.yaml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/kamelets/kafka-source.kamelet.yaml b/kamelets/kafka-source.kamelet.yaml
index 4d7752fd..0e110991 100644
--- a/kamelets/kafka-source.kamelet.yaml
+++ b/kamelets/kafka-source.kamelet.yaml
@@ -134,9 +134,8 @@ spec:
     beans:
       - name: kafkaHeaderDeserializer
         type: "#class:org.apache.camel.kamelets.utils.serialization.kafka.KafkaHeaderDeserializer"
-        property:
-          - key: enabled
-            value: '{{deserializeHeaders}}'
+        properties:
+          enabled: '{{deserializeHeaders}}'
     from:
       uri: "kafka:{{topic}}"
       parameters: