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 2022/10/04 07:40:55 UTC

[camel-kamelets] branch 0.9.x-bigquery created (now 0c3f81a8)

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

acosentino pushed a change to branch 0.9.x-bigquery
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


      at 0c3f81a8 Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean

This branch includes the following new commits:

     new 5f375402 Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean
     new 0c3f81a8 Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel-kamelets] 01/02: Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 0.9.x-bigquery
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 5f3754028df5efea8865bf56954808b0444980b4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 4 09:36:54 2022 +0200

    Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean
---
 kamelets/google-bigquery-sink.kamelet.yaml | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/kamelets/google-bigquery-sink.kamelet.yaml b/kamelets/google-bigquery-sink.kamelet.yaml
index 3f644081..d92d29a0 100644
--- a/kamelets/google-bigquery-sink.kamelet.yaml
+++ b/kamelets/google-bigquery-sink.kamelet.yaml
@@ -52,12 +52,12 @@ spec:
         title: Big Query Table Id
         description: The Big Query Table ID.
         type: string
-      credentialsFileLocation:
-        title: Google Cloud Platform Credential File
-        description: The credential for accessing Google Cloud Platform API services. This value must be a path to a service account key file.
-        type: string
+      serviceAccountKey:
+        title: Service Account Key
+        description: The service account key to use as credentials for the BigQuery Service. You must encode this value in base64.
+        type: binary
         x-descriptors:
-          - urn:camel:group:credentials
+        - urn:camel:group:credentials
   types:
     in:
       mediaType: application/json
@@ -67,12 +67,6 @@ spec:
     - "camel:google-bigquery"
     - "camel:jackson"
   template:
-    beans:
-      - name: connectionFactoryBean
-        type: "#class:org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory"
-        property:
-          - key: credentialsFileLocation
-            value: '{{credentialsFileLocation}}'
     from:
       uri: "kamelet:source"
       steps:
@@ -82,4 +76,4 @@ spec:
       - to:
           uri: "google-bigquery:{{projectId}}:{{dataset}}:{{table}}"
           parameters:
-            connectionFactory: "#bean:{{connectionFactoryBean}}"
+            serviceAccountKey: "base64:{{serviceAccountKey}}"


[camel-kamelets] 02/02: Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 0.9.x-bigquery
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 0c3f81a840d21ca889a7d19bc60ffcd4cb17251d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 4 09:37:44 2022 +0200

    Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean
---
 .../kamelets/google-bigquery-sink.kamelet.yaml         | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/google-bigquery-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/google-bigquery-sink.kamelet.yaml
index 3f644081..d92d29a0 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/google-bigquery-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/google-bigquery-sink.kamelet.yaml
@@ -52,12 +52,12 @@ spec:
         title: Big Query Table Id
         description: The Big Query Table ID.
         type: string
-      credentialsFileLocation:
-        title: Google Cloud Platform Credential File
-        description: The credential for accessing Google Cloud Platform API services. This value must be a path to a service account key file.
-        type: string
+      serviceAccountKey:
+        title: Service Account Key
+        description: The service account key to use as credentials for the BigQuery Service. You must encode this value in base64.
+        type: binary
         x-descriptors:
-          - urn:camel:group:credentials
+        - urn:camel:group:credentials
   types:
     in:
       mediaType: application/json
@@ -67,12 +67,6 @@ spec:
     - "camel:google-bigquery"
     - "camel:jackson"
   template:
-    beans:
-      - name: connectionFactoryBean
-        type: "#class:org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory"
-        property:
-          - key: credentialsFileLocation
-            value: '{{credentialsFileLocation}}'
     from:
       uri: "kamelet:source"
       steps:
@@ -82,4 +76,4 @@ spec:
       - to:
           uri: "google-bigquery:{{projectId}}:{{dataset}}:{{table}}"
           parameters:
-            connectionFactory: "#bean:{{connectionFactoryBean}}"
+            serviceAccountKey: "base64:{{serviceAccountKey}}"