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 2020/10/13 06:41:04 UTC
[camel-kafka-connector-examples] 02/03: AWS2-S3-Zip-dataformat
example: Added openshift configuration files
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch zip-aws2-s3
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector-examples.git
commit d011bbe55e263359e4e755f20aad1a3f38f2ebc4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 13 08:39:38 2020 +0200
AWS2-S3-Zip-dataformat example: Added openshift configuration files
---
.../config/openshift/aws2-s3-cred.properties | 3 +++
.../openshift/aws2-s3-sink-with-zip-dataformat.yaml | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+)
diff --git a/aws2-s3/aws2-s3-sink-with-zip-dataformat/config/openshift/aws2-s3-cred.properties b/aws2-s3/aws2-s3-sink-with-zip-dataformat/config/openshift/aws2-s3-cred.properties
new file mode 100644
index 0000000..d1596a1
--- /dev/null
+++ b/aws2-s3/aws2-s3-sink-with-zip-dataformat/config/openshift/aws2-s3-cred.properties
@@ -0,0 +1,3 @@
+accessKey=xxxx
+secretKey=yyyy
+region=region
diff --git a/aws2-s3/aws2-s3-sink-with-zip-dataformat/config/openshift/aws2-s3-sink-with-zip-dataformat.yaml b/aws2-s3/aws2-s3-sink-with-zip-dataformat/config/openshift/aws2-s3-sink-with-zip-dataformat.yaml
new file mode 100644
index 0000000..3c185f5
--- /dev/null
+++ b/aws2-s3/aws2-s3-sink-with-zip-dataformat/config/openshift/aws2-s3-sink-with-zip-dataformat.yaml
@@ -0,0 +1,20 @@
+apiVersion: kafka.strimzi.io/v1alpha1
+kind: KafkaConnector
+metadata:
+ name: s3-sink-connector
+ namespace: myproject
+ labels:
+ strimzi.io/cluster: my-connect-cluster
+spec:
+ class: org.apache.camel.kafkaconnector.aws2s3.CamelAws2s3SinkConnector
+ tasksMax: 1
+ config:
+ key.converter: org.apache.kafka.connect.storage.StringConverter
+ value.converter: org.apache.kafka.connect.storage.StringConverter
+ topics: s3-topic
+ camel.sink.path.bucketNameOrArn: camel-kafka-connector
+ camel.sink.endpoint.keyName: ${date:now:yyyyMMdd-HHmmssSSS}-${exchangeId}.zip
+ camel.sink.marshal: zipfile
+ camel.component.aws2-s3.accessKey: ${file:/opt/kafka/external-configuration/aws-credentials/aws2-s3-cred.properties:accessKey}
+ camel.component.aws2-s3.secretKey: ${file:/opt/kafka/external-configuration/aws-credentials/aws2-s3-cred.properties:secretKey}
+ camel.component.aws2-s3.region: ${file:/opt/kafka/external-configuration/aws-credentials/aws2-s3-cred.properties:region}