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/17 17:28:47 UTC

[camel-kamelets] 08/11: Added Google Cloud Functions Sink Kamelet

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 0e8c809db397af81a52839a203a7f68fbda78698
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 17 18:22:34 2021 +0100

    Added Google Cloud Functions Sink Kamelet
---
 docs/modules/ROOT/pages/google-functions-sink.adoc            | 8 +++++---
 templates/bindings/camel-k/google-functions-sink-binding.yaml | 1 +
 templates/bindings/core/google-functions-sink-binding.yaml    | 1 +
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/docs/modules/ROOT/pages/google-functions-sink.adoc b/docs/modules/ROOT/pages/google-functions-sink.adoc
index 09e7637..4cabf4b 100644
--- a/docs/modules/ROOT/pages/google-functions-sink.adoc
+++ b/docs/modules/ROOT/pages/google-functions-sink.adoc
@@ -18,8 +18,8 @@ The following table summarizes the configuration options available for the `goog
 | Property| Name| Description| Type| Default| Example
 | *functionName {empty}* *| Function Name| The Function Name| string| | 
 | *projectId {empty}* *| Project Id| The Google Cloud Functions Project Id| string| | 
+| *region {empty}* *| Region| The Region where the Google Cloud Functions has been deployed| string| | 
 | *serviceAccountKey {empty}* *| Service Account Key| The Service account key that can be used as credentials for the Google Cloud Functions platform| string| | 
-| region| Region| The Region where the Google Cloud Functions has been deployed| string| | 
 |===
 
 NOTE: Fields marked with an asterisk ({empty}*) are mandatory.
@@ -62,6 +62,7 @@ spec:
     properties:
       functionName: "The Function Name"
       projectId: "The Project Id"
+      region: "The Region"
       serviceAccountKey: "The Service Account Key"
   
 ----
@@ -87,7 +88,7 @@ Configure and run the sink by using the following command:
 
 [source,shell]
 ----
-kamel bind channel:mychannel google-functions-sink -p "sink.functionName=The Function Name" -p "sink.projectId=The Project Id" -p "sink.serviceAccountKey=The Service Account Key"
+kamel bind channel:mychannel google-functions-sink -p "sink.functionName=The Function Name" -p "sink.projectId=The Project Id" -p "sink.region=The Region" -p "sink.serviceAccountKey=The Service Account Key"
 ----
 
 This command creates the KameletBinding in the current namespace on the cluster.
@@ -117,6 +118,7 @@ spec:
     properties:
       functionName: "The Function Name"
       projectId: "The Project Id"
+      region: "The Region"
       serviceAccountKey: "The Service Account Key"
   
 ----
@@ -144,7 +146,7 @@ Configure and run the sink by using the following command:
 
 [source,shell]
 ----
-kamel bind kafka.strimzi.io/v1beta1:KafkaTopic:my-topic google-functions-sink -p "sink.functionName=The Function Name" -p "sink.projectId=The Project Id" -p "sink.serviceAccountKey=The Service Account Key"
+kamel bind kafka.strimzi.io/v1beta1:KafkaTopic:my-topic google-functions-sink -p "sink.functionName=The Function Name" -p "sink.projectId=The Project Id" -p "sink.region=The Region" -p "sink.serviceAccountKey=The Service Account Key"
 ----
 
 This command creates the KameletBinding in the current namespace on the cluster.
diff --git a/templates/bindings/camel-k/google-functions-sink-binding.yaml b/templates/bindings/camel-k/google-functions-sink-binding.yaml
index 70e2f32..61f1950 100644
--- a/templates/bindings/camel-k/google-functions-sink-binding.yaml
+++ b/templates/bindings/camel-k/google-functions-sink-binding.yaml
@@ -16,5 +16,6 @@ spec:
     properties:
       functionName: "The Function Name"
       projectId: "The Project Id"
+      region: "The Region"
       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
index 8da065b..ad5c226 100644
--- a/templates/bindings/core/google-functions-sink-binding.yaml
+++ b/templates/bindings/core/google-functions-sink-binding.yaml
@@ -10,5 +10,6 @@
           parameters:
             functionName: "The Function Name"
             projectId: "The Project Id"
+            region: "The Region"
             serviceAccountKey: "The Service Account Key"
     
\ No newline at end of file