This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit f50a81a7f121ded50b78dded654bac74032ce823 Author: Andrea Cosentino <[email protected]> AuthorDate: Wed Dec 14 14:50:55 2022 +0100 Google Pubsub Kamelets: Make serviceAccountKey optional Signed-off-by: Andrea Cosentino <[email protected]> --- .../src/main/resources/kamelets/google-pubsub-source.kamelet.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-source.kamelet.yaml index 6f2a6a07..4a3d3232 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-source.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/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}}"
