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:18 UTC
[camel-kamelets] 03/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 d13154c55681598ad5687daf20ff2976513c2712
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue May 23 13:48:47 2023 +0200
Bean: Use properties instead of property with key and value - AWS Redshift Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/aws-redshift-sink.kamelet.yaml | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/kamelets/aws-redshift-sink.kamelet.yaml b/kamelets/aws-redshift-sink.kamelet.yaml
index a1e22215..08ec2a65 100644
--- a/kamelets/aws-redshift-sink.kamelet.yaml
+++ b/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: