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

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

commit 37f1311a1bd818cb62762ae044e5cc4d4558ac64
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Wed Sep 8 15:32:52 2021 +0200

    Added Google Pubsub Sink Kamelet
---
 .../bindings/camel-k/google-pubsub-sink-binding.yaml | 20 ++++++++++++++++++++
 .../bindings/core/google-pubsub-sink-binding.yaml    | 14 ++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/templates/bindings/camel-k/google-pubsub-sink-binding.yaml 
b/templates/bindings/camel-k/google-pubsub-sink-binding.yaml
new file mode 100644
index 0000000..19bbc40
--- /dev/null
+++ b/templates/bindings/camel-k/google-pubsub-sink-binding.yaml
@@ -0,0 +1,20 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: google-pubsub-sink-binding
+spec:
+  source:
+    ref:
+      kind: KafkaTopic
+      apiVersion: kafka.strimzi.io/v1beta1
+      name: my-topic
+  sink:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: google-pubsub-sink
+    properties:
+      destinationName: "The Destination Name"
+      projectId: "The Project Id"
+      serviceAccountKey: "The Service Account Key"
+  
\ No newline at end of file
diff --git a/templates/bindings/core/google-pubsub-sink-binding.yaml 
b/templates/bindings/core/google-pubsub-sink-binding.yaml
new file mode 100644
index 0000000..9dbdfe5
--- /dev/null
+++ b/templates/bindings/core/google-pubsub-sink-binding.yaml
@@ -0,0 +1,14 @@
+- route:
+    from:
+      uri: "kamelet:timer-source"
+      parameters:
+        period: 1000
+        message: "Hello Camel JBang"
+    steps:
+      - to:
+          uri: "kamelet:google-pubsub-sink"
+          parameters:
+            destinationName: "The Destination Name"
+            projectId: "The Project Id"
+            serviceAccountKey: "The Service Account Key"
+    
\ No newline at end of file

Reply via email to