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 4d1844842bd6d345fb42b967f2531c41c95cc68f
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu May 25 14:30:01 2023 +0200

    Bean: Use properties instead of property with key and value - Kafka SSL Sink
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 kamelets/kafka-ssl-sink.kamelet.yaml | 29 ++++++++++-------------------
 1 file changed, 10 insertions(+), 19 deletions(-)

diff --git a/kamelets/kafka-ssl-sink.kamelet.yaml 
b/kamelets/kafka-ssl-sink.kamelet.yaml
index ac1777d5..685cab6a 100644
--- a/kamelets/kafka-ssl-sink.kamelet.yaml
+++ b/kamelets/kafka-ssl-sink.kamelet.yaml
@@ -123,25 +123,16 @@ spec:
       - name: kafka-ssl-sink-local
         type: '#class:org.apache.camel.component.kafka.KafkaComponent'
       - name: kafka-ssl-sink-configuration-local
-        property:
-          - key: brokers
-            value: '{{bootstrapServers}}'
-          - key: securityProtocol
-            value: '{{securityProtocol}}'
-          - key: sslKeystoreLocation
-            value: '{{sslKeystoreLocation}}'
-          - key: sslKeyPassword
-            value: '{{sslKeyPassword}}'
-          - key: sslKeystorePassword
-            value: '{{sslKeystorePassword}}'
-          - key: sslTruststoreLocation
-            value: '{{sslTruststoreLocation}}'
-          - key: sslProtocol
-            value: '{{sslProtocol}}'
-          - key: sslEnabledProtocols
-            value: '{{sslEnabledProtocols}}'
-          - key: saslMechanism
-            value: '{{saslMechanism}}'
+        properties:
+          brokers: '{{bootstrapServers}}'
+          securityProtocol: '{{securityProtocol}}'
+          sslKeystoreLocation: '{{sslKeystoreLocation}}'
+          sslKeyPassword: '{{sslKeyPassword}}'
+          sslKeystorePassword: '{{sslKeystorePassword}}'
+          sslTruststoreLocation: '{{sslTruststoreLocation}}'
+          sslProtocol: '{{sslProtocol}}'
+          sslEnabledProtocols: '{{sslEnabledProtocols}}'
+          saslMechanism: '{{saslMechanism}}' 
         type: '#class:org.apache.camel.component.kafka.KafkaConfiguration'
     from:
       uri: "kamelet:source"

Reply via email to