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

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

commit 1acd74678d8697a15e1a44311509d9c933fd8088
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue May 23 13:57:22 2023 +0200

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

diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-source.kamelet.yaml
index 3be9fa3f..d31ff4d0 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-source.kamelet.yaml
@@ -96,15 +96,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: "sql:{{query}}"
       parameters:

Reply via email to