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 2021/09/08 13:34:09 UTC
[camel-kamelets] 02/05: Added Google Pubsub Sink Kamelet
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch google-pubsub-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit a5a1f16dcae4ac84524226a4fb9795ef3869a67c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 8 15:32:21 2021 +0200
Added Google Pubsub Sink Kamelet
---
.../kamelets/google-pubsub-sink.kamelet.yaml | 49 ++++++++++++++++++++++
1 file changed, 49 insertions(+)
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
new file mode 100644
index 0000000..398b35f
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-sink.kamelet.yaml
@@ -0,0 +1,49 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: google-pubsub-sink
+ annotations:
+ camel.apache.org/kamelet.support.level: "Preview"
+ camel.apache.org/catalog.version: "main-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI1MDAiIHZpZXdCb3g9Ii0xLjYzMzIzNTQzIDcuMDMyNjA5MzMgMTMxLjI2NTc0NjgyIDExNC40MzkzOTA2NyIgd2lkdGg9IjI1MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2NCIgeDI9IjY0IiB5MT0iNy4wMzQiIHkyPSIxMjAuNzg5Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM0Mzg3ZmQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3 [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "Google Pubsub"
+ labels:
+ camel.apache.org/kamelet.type: "sink"
+spec:
+ definition:
+ title: "Google Pubsub Sink"
+ description: |-
+ Send messages to Google Pubsub.
+
+ The serviceAccountKey property needs to be encoded in base64, so when you pass it as parameter, don't forget to encode it.
+ required:
+ - projectId
+ - destinationName
+ - serviceAccountKey
+ type: object
+ properties:
+ projectId:
+ title: Project Id
+ description: The Google Cloud PubSub Project Id
+ type: string
+ destinationName:
+ title: Destination Name
+ description: The Destination Name
+ type: string
+ serviceAccountKey:
+ title: Service Account Key
+ description: The Service account key that can be used as credentials for the PubSub publisher/subscriber
+ type: binary
+ dependencies:
+ - "camel:kamelet"
+ - "camel:google-pubsub"
+ - "camel:jackson"
+ flow:
+ from:
+ uri: kamelet:source
+ steps:
+ - to:
+ uri: "google-pubsub://{{projectId}}:{{destinationName}}"
+ parameters:
+ serviceAccountKey: "base64:{{serviceAccountKey}}"