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 475ad0b6ddbbd72f526ffe72010bfe868669478d Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed Sep 8 13:56:04 2021 +0200 Added Google pubsub Source Kamelet --- .../camel-k/google-pubsub-source-binding.yaml | 19 +++++++++++++++++++ .../bindings/core/google-pubsub-source-binding.yaml | 10 ++++++++++ 2 files changed, 29 insertions(+) diff --git a/templates/bindings/camel-k/google-pubsub-source-binding.yaml b/templates/bindings/camel-k/google-pubsub-source-binding.yaml new file mode 100644 index 0000000..367f326 --- /dev/null +++ b/templates/bindings/camel-k/google-pubsub-source-binding.yaml @@ -0,0 +1,19 @@ +apiVersion: camel.apache.org/v1alpha1 +kind: KameletBinding +metadata: + name: google-pubsub-source-binding +spec: + source: + ref: + kind: Kamelet + apiVersion: camel.apache.org/v1alpha1 + name: google-pubsub-source + properties: + projectId: "The Project Id" + 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-pubsub-source-binding.yaml b/templates/bindings/core/google-pubsub-source-binding.yaml new file mode 100644 index 0000000..a696002 --- /dev/null +++ b/templates/bindings/core/google-pubsub-source-binding.yaml @@ -0,0 +1,10 @@ +- route: + from: + uri: "kamelet:google-pubsub-source" + parameters: + projectId: "The Project Id" + serviceAccountKey: "The Service Account Key" + steps: + - to: + uri: "log:info" + \ No newline at end of file