This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch gcp-functions in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit a2f95b2fad65eb436adcd6af3c3840289b204373 Author: Andrea Cosentino <[email protected]> AuthorDate: Fri Dec 17 18:21:16 2021 +0100 Added Google Cloud Functions Sink Kamelet - Templates --- .../camel-k/google-functions-sink-binding.yaml | 20 ++++++++++++++++++++ .../bindings/core/google-functions-sink-binding.yaml | 14 ++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/templates/bindings/camel-k/google-functions-sink-binding.yaml b/templates/bindings/camel-k/google-functions-sink-binding.yaml new file mode 100644 index 0000000..70e2f32 --- /dev/null +++ b/templates/bindings/camel-k/google-functions-sink-binding.yaml @@ -0,0 +1,20 @@ +apiVersion: camel.apache.org/v1alpha1 +kind: KameletBinding +metadata: + name: google-functions-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-functions-sink + properties: + functionName: "The Function Name" + projectId: "The Project Id" + serviceAccountKey: "The Service Account Key" + \ No newline at end of file diff --git a/templates/bindings/core/google-functions-sink-binding.yaml b/templates/bindings/core/google-functions-sink-binding.yaml new file mode 100644 index 0000000..8da065b --- /dev/null +++ b/templates/bindings/core/google-functions-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-functions-sink" + parameters: + functionName: "The Function Name" + projectId: "The Project Id" + serviceAccountKey: "The Service Account Key" + \ No newline at end of file
