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/23 12:25:19 UTC

[camel-kamelets] 04/10: Bean: Use properties instead of property with key and value - AWS Redshift Sink

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

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

commit 28fb6acfebc64146cddef35a4d19baaf37d535e2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue May 23 13:49:28 2023 +0200

    Bean: Use properties instead of property with key and value - AWS Redshift Sink
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../main/resources/kamelets/aws-redshift-sink.kamelet.yaml | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml
index a1e22215..08ec2a65 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml
@@ -94,15 +94,11 @@ spec:
     beans:
       - name: dsBean
         type: "#class:org.apache.commons.dbcp2.BasicDataSource"
-        property:
-          - key: username
-            value: '{{username}}'
-          - key: password
-            value: '{{password}}'
-          - key: url
-            value: 'jdbc:redshift://{{serverName}}:{{serverPort}}/{{databaseName}}'
-          - key: driverClassName
-            value: 'com.amazon.redshift.jdbc.Driver'
+        properties:
+          username: '{{username}}'
+          password: '{{password}}'
+          url: 'jdbc:redshift://{{serverName}}:{{serverPort}}/{{databaseName}}'
+          driverClassName: 'com.amazon.redshift.jdbc.Driver'
     from:
       uri: "kamelet:source"
       steps: