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:46 UTC
[camel-kamelets] 01/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 fceb55560513607ad34d523db58a9caf2e1d2dde
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Dec 14 14:50:29 2022 +0100
Google Pubsub Kamelets: Make serviceAccountKey optional
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/google-pubsub-source.kamelet.yaml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/kamelets/google-pubsub-source.kamelet.yaml b/kamelets/google-pubsub-source.kamelet.yaml
index 6f2a6a07..4a3d3232 100644
--- a/kamelets/google-pubsub-source.kamelet.yaml
+++ b/kamelets/google-pubsub-source.kamelet.yaml
@@ -31,10 +31,11 @@ spec:
title: "Google Pubsub Source"
description: |-
Consume messages from Google Cloud Pub/Sub.
+
+ If you specify the `serviceAccountKey` property, you must base64 encode it before you pass it as a parameter.
required:
- projectId
- subscriptionName
- - serviceAccountKey
type: object
properties:
projectId:
@@ -76,7 +77,7 @@ spec:
from:
uri: "google-pubsub://{{projectId}}:{{subscriptionName}}"
parameters:
- serviceAccountKey: "base64:{{serviceAccountKey}}"
+ serviceAccountKey: "base64:{{?serviceAccountKey}}"
synchronousPull: "{{synchronousPull}}"
maxMessagesPerPoll: "{{maxMessagesPerPoll}}"
concurrentConsumers: "{{concurrentConsumers}}"