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:55 UTC
[camel-kamelets] 06/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 7a8a80b90192b4bfe0a8169d1412f76f7102a660
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 25 14:30:34 2023 +0200
Bean: Use properties instead of property with key and value - Kafka SSL Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../resources/kamelets/kafka-ssl-sink.kamelet.yaml | 29 ++++++++--------------
1 file changed, 10 insertions(+), 19 deletions(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/kafka-ssl-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/kafka-ssl-sink.kamelet.yaml
index ac1777d5..685cab6a 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/kafka-ssl-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/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"