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:54 UTC
[camel-kamelets] 05/10: Bean: Use properties instead of property with key and value - Kafka SSL Sink
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 <an...@gmail.com>
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 <an...@gmail.com>
---
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"