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 12:06:42 UTC
[camel-kamelets] branch main updated (ac46273 -> a9c5ef9)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.
from ac46273 Regen documentation
new d8988c5 Added Google pubsub Source Kamelet
new b8c7da4 Added Google pubsub Source Kamelet
new 01c9341 Added Google pubsub Source Kamelet
new 1cee50b Added Google pubsub Source Kamelet
new 475ad0b Added Google pubsub Source Kamelet
new 903baac Added Google pubsub Source Kamelet
new c3b7217 Added Google pubsub Source Kamelet
new a9c5ef9 Added Google pubsub Source Kamelet
The 8 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../images/kamelets/google-pubsub-source.svg | 1 +
docs/modules/ROOT/nav.adoc | 1 +
docs/modules/ROOT/pages/google-pubsub-source.adoc | 133 +++++++++++++++++++++
google-pubsub-source.kamelet.yaml | 62 ++++++++++
.../kamelets/google-pubsub-source.kamelet.yaml | 62 ++++++++++
...ding.yaml => google-pubsub-source-binding.yaml} | 20 ++--
.../core/google-pubsub-source-binding.yaml | 11 ++
7 files changed, 280 insertions(+), 10 deletions(-)
create mode 100644 docs/modules/ROOT/assets/images/kamelets/google-pubsub-source.svg
create mode 100644 docs/modules/ROOT/pages/google-pubsub-source.adoc
create mode 100644 google-pubsub-source.kamelet.yaml
create mode 100644 library/camel-kamelets/src/main/resources/kamelets/google-pubsub-source.kamelet.yaml
copy templates/bindings/camel-k/{aws-ec2-sink-binding.yaml => google-pubsub-source-binding.yaml} (57%)
create mode 100644 templates/bindings/core/google-pubsub-source-binding.yaml
[camel-kamelets] 08/08: Added Google pubsub Source Kamelet
Posted by ac...@apache.org.
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 a9c5ef9c74aafaa9d722b22e12f9ca145ed76c4c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 8 14:01:16 2021 +0200
Added Google pubsub Source Kamelet
---
docs/modules/ROOT/pages/google-pubsub-source.adoc | 8 +++++---
templates/bindings/camel-k/google-pubsub-source-binding.yaml | 1 +
templates/bindings/core/google-pubsub-source-binding.yaml | 1 +
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/docs/modules/ROOT/pages/google-pubsub-source.adoc b/docs/modules/ROOT/pages/google-pubsub-source.adoc
index 5c31312..e6d25e1 100644
--- a/docs/modules/ROOT/pages/google-pubsub-source.adoc
+++ b/docs/modules/ROOT/pages/google-pubsub-source.adoc
@@ -17,8 +17,8 @@ The following table summarizes the configuration options available for the `goog
| Property| Name| Description| Type| Default| Example
| *projectId {empty}* *| Project Id| The Google Cloud PubSub Project Id| string| |
| *serviceAccountKey {empty}* *| Service Account Key| The Service account key that can be used as credentials for the PubSub publisher/subscriber| binary| |
+| *subscriptionName {empty}* *| Subscription Name| The Subscription Name| string| |
| maxMessagesPerPoll| Max Messages Per Poll| The max number of messages to receive from the server in a single API call| integer| `1`|
-| subscriptionName| Subscription Name| The Subscription Name| string| |
| synchronousPull| Synchronous Pull| If Synchronously pull batches of messages is enabled or not| boolean| `false`|
|===
@@ -48,6 +48,7 @@ spec:
properties:
projectId: "The Project Id"
serviceAccountKey: "The Service Account Key"
+ subscriptionName: "The Subscription Name"
sink:
ref:
kind: InMemoryChannel
@@ -72,7 +73,7 @@ The procedure described above can be simplified into a single execution of the `
[source,shell]
----
-kamel bind google-pubsub-source -p "source.projectId=The Project Id" -p "source.serviceAccountKey=The Service Account Key" channel/mychannel
+kamel bind google-pubsub-source -p "source.projectId=The Project Id" -p "source.serviceAccountKey=The Service Account Key" -p "source.subscriptionName=The Subscription Name" channel/mychannel
----
This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
@@ -97,6 +98,7 @@ spec:
properties:
projectId: "The Project Id"
serviceAccountKey: "The Service Account Key"
+ subscriptionName: "The Subscription Name"
sink:
ref:
kind: KafkaTopic
@@ -123,7 +125,7 @@ The procedure described above can be simplified into a single execution of the `
[source,shell]
----
-kamel bind google-pubsub-source -p "source.projectId=The Project Id" -p "source.serviceAccountKey=The Service Account Key" kafka.strimzi.io/v1beta1:KafkaTopic:my-topic
+kamel bind google-pubsub-source -p "source.projectId=The Project Id" -p "source.serviceAccountKey=The Service Account Key" -p "source.subscriptionName=The Subscription Name" kafka.strimzi.io/v1beta1:KafkaTopic:my-topic
----
This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
diff --git a/templates/bindings/camel-k/google-pubsub-source-binding.yaml b/templates/bindings/camel-k/google-pubsub-source-binding.yaml
index 367f326..d5423f1 100644
--- a/templates/bindings/camel-k/google-pubsub-source-binding.yaml
+++ b/templates/bindings/camel-k/google-pubsub-source-binding.yaml
@@ -11,6 +11,7 @@ spec:
properties:
projectId: "The Project Id"
serviceAccountKey: "The Service Account Key"
+ subscriptionName: "The Subscription Name"
sink:
ref:
kind: KafkaTopic
diff --git a/templates/bindings/core/google-pubsub-source-binding.yaml b/templates/bindings/core/google-pubsub-source-binding.yaml
index a696002..c8ff5bb 100644
--- a/templates/bindings/core/google-pubsub-source-binding.yaml
+++ b/templates/bindings/core/google-pubsub-source-binding.yaml
@@ -4,6 +4,7 @@
parameters:
projectId: "The Project Id"
serviceAccountKey: "The Service Account Key"
+ subscriptionName: "The Subscription Name"
steps:
- to:
uri: "log:info"
[camel-kamelets] 02/08: Added Google pubsub Source Kamelet
Posted by ac...@apache.org.
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 b8c7da4b0e6d86ef52904e531737880fe7560d4c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 8 13:55:00 2021 +0200
Added Google pubsub Source Kamelet
---
.../kamelets/google-pubsub-source.kamelet.yaml | 62 ++++++++++++++++++++++
1 file changed, 62 insertions(+)
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
new file mode 100644
index 0000000..11ffcf0
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-source.kamelet.yaml
@@ -0,0 +1,62 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: google-pubsub-source
+ 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: "source"
+spec:
+ definition:
+ title: "Google Pubsub Source"
+ description: |-
+ Consume messages from 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
+ subscriptionName:
+ title: Subscription Name
+ description: The Subscription 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
+ synchronousPull:
+ title: Synchronous Pull
+ description: If Synchronously pull batches of messages is enabled or not
+ type: boolean
+ x-descriptors:
+ - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+ default: false
+ maxMessagesPerPoll:
+ title: Max Messages Per Poll
+ description: The max number of messages to receive from the server in a single API call
+ type: integer
+ default: 1
+ dependencies:
+ - "camel:kamelet"
+ - "camel:google-pubsub"
+ - "camel:jackson"
+ flow:
+ from:
+ uri: "google-pubsub://{{projectId}}:{{subscriptionName}}"
+ parameters:
+ serviceAccountKey: "base64:{{serviceAccountKey}}"
+ synchronousPull: "{{synchronousPull}}"
+ maxMessagesPerPoll: "{{maxMessagesPerPoll}}"
+ steps:
+ - to: kamelet:sink
[camel-kamelets] 03/08: Added Google pubsub Source Kamelet
Posted by ac...@apache.org.
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 01c9341f8816be3f55770c0c8ec2f1aff767b8a9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 8 13:55:43 2021 +0200
Added Google pubsub Source Kamelet
---
docs/modules/ROOT/nav.adoc | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 9ff849d..3d76a0b 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -52,6 +52,7 @@
* xref:ROOT:github-source.adoc[image:kamelets/github-source.svg[] Github Source]
* xref:ROOT:google-calendar-source.adoc[image:kamelets/google-calendar-source.svg[] Google Calendar Source]
* xref:ROOT:google-mail-source.adoc[image:kamelets/google-mail-source.svg[] Google Mail Source]
+* xref:ROOT:google-pubsub-source.adoc[image:kamelets/google-pubsub-source.svg[] Google Pubsub Source]
* xref:ROOT:google-sheets-source.adoc[image:kamelets/google-sheets-source.svg[] Google Sheets Source]
* xref:ROOT:has-header-filter-action.adoc[image:kamelets/has-header-filter-action.svg[] Has Header Filter Action]
* xref:ROOT:header-matches-filter-action.adoc[image:kamelets/header-matches-filter-action.svg[] Header Matches Filter Action]
[camel-kamelets] 07/08: Added Google pubsub Source Kamelet
Posted by ac...@apache.org.
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 c3b7217abafbc07c31dc89af826fedc98bca05f8
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 8 14:01:02 2021 +0200
Added Google pubsub Source Kamelet
---
.../src/main/resources/kamelets/google-pubsub-source.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 11ffcf0..97e74c9 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
@@ -19,7 +19,7 @@ spec:
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
+ - subscriptionName
- serviceAccountKey
type: object
properties:
[camel-kamelets] 06/08: Added Google pubsub Source Kamelet
Posted by ac...@apache.org.
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 903baac5e22eb5b47580b0f35a6b9f730d7a0e98
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 8 14:00:32 2021 +0200
Added Google pubsub Source Kamelet
---
google-pubsub-source.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/google-pubsub-source.kamelet.yaml b/google-pubsub-source.kamelet.yaml
index 11ffcf0..97e74c9 100644
--- a/google-pubsub-source.kamelet.yaml
+++ b/google-pubsub-source.kamelet.yaml
@@ -19,7 +19,7 @@ spec:
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
+ - subscriptionName
- serviceAccountKey
type: object
properties:
[camel-kamelets] 01/08: Added Google pubsub Source Kamelet
Posted by ac...@apache.org.
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 d8988c5d2845d69e87bb191b1b5b03fdce6c49e2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 8 13:52:41 2021 +0200
Added Google pubsub Source Kamelet
---
google-pubsub-source.kamelet.yaml | 62 +++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/google-pubsub-source.kamelet.yaml b/google-pubsub-source.kamelet.yaml
new file mode 100644
index 0000000..11ffcf0
--- /dev/null
+++ b/google-pubsub-source.kamelet.yaml
@@ -0,0 +1,62 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: google-pubsub-source
+ 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: "source"
+spec:
+ definition:
+ title: "Google Pubsub Source"
+ description: |-
+ Consume messages from 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
+ subscriptionName:
+ title: Subscription Name
+ description: The Subscription 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
+ synchronousPull:
+ title: Synchronous Pull
+ description: If Synchronously pull batches of messages is enabled or not
+ type: boolean
+ x-descriptors:
+ - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+ default: false
+ maxMessagesPerPoll:
+ title: Max Messages Per Poll
+ description: The max number of messages to receive from the server in a single API call
+ type: integer
+ default: 1
+ dependencies:
+ - "camel:kamelet"
+ - "camel:google-pubsub"
+ - "camel:jackson"
+ flow:
+ from:
+ uri: "google-pubsub://{{projectId}}:{{subscriptionName}}"
+ parameters:
+ serviceAccountKey: "base64:{{serviceAccountKey}}"
+ synchronousPull: "{{synchronousPull}}"
+ maxMessagesPerPoll: "{{maxMessagesPerPoll}}"
+ steps:
+ - to: kamelet:sink
[camel-kamelets] 05/08: Added Google pubsub Source Kamelet
Posted by ac...@apache.org.
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 475ad0b6ddbbd72f526ffe72010bfe868669478d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 8 13:56:04 2021 +0200
Added Google pubsub Source Kamelet
---
.../camel-k/google-pubsub-source-binding.yaml | 19 +++++++++++++++++++
.../bindings/core/google-pubsub-source-binding.yaml | 10 ++++++++++
2 files changed, 29 insertions(+)
diff --git a/templates/bindings/camel-k/google-pubsub-source-binding.yaml b/templates/bindings/camel-k/google-pubsub-source-binding.yaml
new file mode 100644
index 0000000..367f326
--- /dev/null
+++ b/templates/bindings/camel-k/google-pubsub-source-binding.yaml
@@ -0,0 +1,19 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: google-pubsub-source-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: google-pubsub-source
+ properties:
+ projectId: "The Project Id"
+ serviceAccountKey: "The Service Account Key"
+ sink:
+ ref:
+ kind: KafkaTopic
+ apiVersion: kafka.strimzi.io/v1beta1
+ name: my-topic
+
\ No newline at end of file
diff --git a/templates/bindings/core/google-pubsub-source-binding.yaml b/templates/bindings/core/google-pubsub-source-binding.yaml
new file mode 100644
index 0000000..a696002
--- /dev/null
+++ b/templates/bindings/core/google-pubsub-source-binding.yaml
@@ -0,0 +1,10 @@
+- route:
+ from:
+ uri: "kamelet:google-pubsub-source"
+ parameters:
+ projectId: "The Project Id"
+ serviceAccountKey: "The Service Account Key"
+ steps:
+ - to:
+ uri: "log:info"
+
\ No newline at end of file
[camel-kamelets] 04/08: Added Google pubsub Source Kamelet
Posted by ac...@apache.org.
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 1cee50bf8f0a668939707dee5990241c860edeed
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 8 13:55:50 2021 +0200
Added Google pubsub Source Kamelet
---
.../images/kamelets/google-pubsub-source.svg | 1 +
docs/modules/ROOT/pages/google-pubsub-source.adoc | 131 +++++++++++++++++++++
2 files changed, 132 insertions(+)
diff --git a/docs/modules/ROOT/assets/images/kamelets/google-pubsub-source.svg b/docs/modules/ROOT/assets/images/kamelets/google-pubsub-source.svg
new file mode 100644
index 0000000..449dd6e
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/google-pubsub-source.svg
@@ -0,0 +1 @@
+<svg height="2500" viewBox="-1.63323543 7.03260933 131.26574682 114.43939067" width="2500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="64" x2="64" y1="7.034" y2="120.789"><stop offset="0" stop-color="#4387fd"/><stop offset="1" stop-color="#4683ea"/></linearGradient><path d="m27.79 115.217-26.25-45.468a11.499 11.499 0 0 1 0-11.499l26.25-45.467a11.5 11.5 0 0 1 9.96-5.75h52.5a11.5 11.5 0 0 1 9.959 5. [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/google-pubsub-source.adoc b/docs/modules/ROOT/pages/google-pubsub-source.adoc
new file mode 100644
index 0000000..5c31312
--- /dev/null
+++ b/docs/modules/ROOT/pages/google-pubsub-source.adoc
@@ -0,0 +1,131 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/google-pubsub-source.svg[] Google Pubsub Source
+
+*Provided by: "Apache Software Foundation"*
+
+*Support Level for this Kamelet is: "Preview"*
+
+Consume messages from Google Pubsub.
+
+The serviceAccountKey property needs to be encoded in base64, so when you pass it as parameter, don't forget to encode it.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `google-pubsub-source` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *projectId {empty}* *| Project Id| The Google Cloud PubSub Project Id| string| |
+| *serviceAccountKey {empty}* *| Service Account Key| The Service account key that can be used as credentials for the PubSub publisher/subscriber| binary| |
+| maxMessagesPerPoll| Max Messages Per Poll| The max number of messages to receive from the server in a single API call| integer| `1`|
+| subscriptionName| Subscription Name| The Subscription Name| string| |
+| synchronousPull| Synchronous Pull| If Synchronously pull batches of messages is enabled or not| boolean| `false`|
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `google-pubsub-source` can be used in various contexts.
+
+=== Knative Source
+
+The `google-pubsub-source` Kamelet can be used as Knative source by binding it to a Knative object.
+
+.google-pubsub-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: google-pubsub-source-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: google-pubsub-source
+ properties:
+ projectId: "The Project Id"
+ serviceAccountKey: "The Service Account Key"
+ sink:
+ ref:
+ kind: InMemoryChannel
+ apiVersion: messaging.knative.dev/v1
+ name: mychannel
+
+----
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `google-pubsub-source-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the source using the following command:
+
+[source,shell]
+----
+kubectl apply -f google-pubsub-source-binding.yaml
+----
+
+==== *Binding to Knative using the Kamel CLI:*
+
+The procedure described above can be simplified into a single execution of the `kamel bind` command:
+
+[source,shell]
+----
+kamel bind google-pubsub-source -p "source.projectId=The Project Id" -p "source.serviceAccountKey=The Service Account Key" channel/mychannel
+----
+
+This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
+
+=== Kafka Source
+
+The `google-pubsub-source` Kamelet can be used as Kafka source by binding it to a Kafka topic.
+
+.google-pubsub-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: google-pubsub-source-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: google-pubsub-source
+ properties:
+ projectId: "The Project Id"
+ serviceAccountKey: "The Service Account Key"
+ sink:
+ ref:
+ kind: KafkaTopic
+ apiVersion: kafka.strimzi.io/v1beta1
+ name: my-topic
+
+----
+
+Ensure that you've installed https://strimzi.io/[Strimzi] and created a topic named `my-topic` in the current namespace.
+Make also sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `google-pubsub-source-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the source using the following command:
+
+[source,shell]
+----
+kubectl apply -f google-pubsub-source-binding.yaml
+----
+
+==== *Binding to Kafka using the Kamel CLI:*
+
+The procedure described above can be simplified into a single execution of the `kamel bind` command:
+
+[source,shell]
+----
+kamel bind google-pubsub-source -p "source.projectId=The Project Id" -p "source.serviceAccountKey=The Service Account Key" kafka.strimzi.io/v1beta1:KafkaTopic:my-topic
+----
+
+This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
+
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT