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 <[email protected]> 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}}"
