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 2021/12/16 12:35:24 UTC

[camel-kamelets] 05/08: Added Google Storage Source Kamelet - Templates

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

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

commit d0ff8d97519944053f6fb394e149334bbd82da17
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 16 13:29:19 2021 +0100

    Added Google Storage Source Kamelet - Templates
---
 .../camel-k/google-storage-source-binding.yaml        | 19 +++++++++++++++++++
 .../bindings/core/google-storage-source-binding.yaml  | 10 ++++++++++
 2 files changed, 29 insertions(+)

diff --git a/templates/bindings/camel-k/google-storage-source-binding.yaml b/templates/bindings/camel-k/google-storage-source-binding.yaml
new file mode 100644
index 0000000..7497203
--- /dev/null
+++ b/templates/bindings/camel-k/google-storage-source-binding.yaml
@@ -0,0 +1,19 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: google-storage-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: google-storage-source
+    properties:
+      bucketNameOrArn: "The Bucket Name Or ARN"
+      serviceAccountKey: "The Service Account Key"
+  sink:
+    ref:
+      kind: KafkaTopic
+      apiVersion: kafka.strimzi.io/v1beta1
+      name: my-topic
+  
\ No newline at end of file
diff --git a/templates/bindings/core/google-storage-source-binding.yaml b/templates/bindings/core/google-storage-source-binding.yaml
new file mode 100644
index 0000000..2567da3
--- /dev/null
+++ b/templates/bindings/core/google-storage-source-binding.yaml
@@ -0,0 +1,10 @@
+- route:
+    from:
+      uri: "kamelet:google-storage-source"
+      parameters:
+        bucketNameOrArn: "The Bucket Name Or ARN"
+        serviceAccountKey: "The Service Account Key"
+    steps:
+      - to:
+          uri: "log:info"
+    
\ No newline at end of file