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/12/14 13:52:49 UTC

[camel-kamelets] 04/04: Google Pubsub Kamelets: Make serviceAccountKey optional

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

acosentino pushed a commit to branch google-pubsub-optional-serviceAccountKey
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 737c02c981004d8c19d42de937aeff99ff8936f4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Dec 14 14:52:30 2022 +0100

    Google Pubsub Kamelets: Make serviceAccountKey optional
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../src/main/resources/kamelets/google-pubsub-sink.kamelet.yaml      | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-sink.kamelet.yaml
index 51371e68..3b1d4f92 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-sink.kamelet.yaml
@@ -32,11 +32,10 @@ spec:
     description: |-
       Send messages to Google Cloud Pub/Sub.
 
-      You must encode the `serviceAccountKey` property before you pass it as a parameter.
+      If you specify the `serviceAccountKey` property, you must base64 encode it before you pass it as a parameter.
     required:
       - projectId
       - destinationName
-      - serviceAccountKey
     type: object
     properties:
       projectId:
@@ -64,4 +63,4 @@ spec:
       - to:
           uri: "google-pubsub://{{projectId}}:{{destinationName}}"
           parameters:
-            serviceAccountKey: "base64:{{serviceAccountKey}}"
+            serviceAccountKey: "base64:{{?serviceAccountKey}}"