This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 197002fa02fe91527479dcbda89e45876d88b25d Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Mar 9 08:43:30 2021 +0100 Added RabbitMQ source kamelet --- .../assets/images/kamelets/rabbitmq-source.svg | 1 + docs/modules/ROOT/nav.adoc | 1 + docs/modules/ROOT/pages/rabbitmq-source.adoc | 67 ++++++++++++++++++++++ 3 files changed, 69 insertions(+) diff --git a/docs/modules/ROOT/assets/images/kamelets/rabbitmq-source.svg b/docs/modules/ROOT/assets/images/kamelets/rabbitmq-source.svg new file mode 100644 index 0000000..0873065 --- /dev/null +++ b/docs/modules/ROOT/assets/images/kamelets/rabbitmq-source.svg @@ -0,0 +1 @@ +<svg width="271px" height="271px" viewBox="-7.5 0 271 271" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><path d="M245.44 108.308h-85.09a7.738 7.738 0 0 1-7.735-7.734v-88.68C152.615 5.327 147.29 0 140.726 0h-30.375c-6.568 0-11.89 5.327-11.89 11.894v88.143c0 4.573-3.697 8.29-8.27 8.31l-27.885.133c-4.612.025-8.359-3.717-8.35-8.325l.173-88.241C54.144 5.337 48.817 0 42.24 0H11.89C5.321 0 0 5.327 0 11.894V260.21c0 5.834 4.726 10.56 10.555 10.56H245.44c5.834 0 10.56-4.726 1 [...] \ No newline at end of file diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc index 6aec635..360f971 100644 --- a/docs/modules/ROOT/nav.adoc +++ b/docs/modules/ROOT/nav.adoc @@ -12,6 +12,7 @@ * xref:ROOT:minio-source.adoc[image:kamelets/minio-source.svg[] Minio Source] * xref:ROOT:mqtt-source.adoc[image:kamelets/mqtt-source.svg[] MQTT Source] * xref:ROOT:nats-source.adoc[image:kamelets/nats-source.svg[] NATS Source] +* xref:ROOT:rabbitmq-source.adoc[image:kamelets/rabbitmq-source.svg[] RabbitMQ Source] * xref:ROOT:salesforce-source.adoc[image:kamelets/salesforce-source.svg[] Salesforce Source] * xref:ROOT:sftp-source.adoc[image:kamelets/sftp-source.svg[] SFTP Source] * xref:ROOT:slack-source.adoc[image:kamelets/slack-source.svg[] Slack Source] diff --git a/docs/modules/ROOT/pages/rabbitmq-source.adoc b/docs/modules/ROOT/pages/rabbitmq-source.adoc new file mode 100644 index 0000000..7937241 --- /dev/null +++ b/docs/modules/ROOT/pages/rabbitmq-source.adoc @@ -0,0 +1,67 @@ +// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT += image:kamelets/rabbitmq-source.svg[] RabbitMQ Source + +*Provided by: "Apache Software Foundation"* + +Receive data from an RabbitMQ Brokers. + +== Configuration Options + +The following table summarizes the configuration options available for the `rabbitmq-source` Kamelet: +[width="100%",cols="2,^2,3,^2,^2,^3",options="header"] +|=== +| Property| Name| Description| Type| Default| Example +| *addresses {empty}* *| Addresses| Comma separated list of RabbitMQ broker addresses| string| | +| *exchangeName {empty}* *| Exchange name| The exchange name determines the exchange the queue will be bound to| string| | +| *password {empty}* *| Password| The password to access the RabbitMQ server| string| | +| *username {empty}* *| Username| The username to access the RabbitMQ server| string| | +| port| Port| Port of the RabbitMQ server| string| `5672`| +|=== + +NOTE: Fields marked with ({empty}*) are mandatory. + +== Usage + +This section summarizes how the `rabbitmq-source` can be used in various contexts. + +=== Knative Source + +The `rabbitmq-source` Kamelet can be used as Knative source by binding it to a Knative object. + +.rabbitmq-source-binding.yaml +[source,yaml] +---- +apiVersion: camel.apache.org/v1alpha1 +kind: KameletBinding +metadata: + name: rabbitmq-source-binding +spec: + source: + ref: + kind: Kamelet + apiVersion: camel.apache.org/v1alpha1 + name: rabbitmq-source + properties: + addresses: "The Addresses" + exchangeName: "The Exchange name" + password: "The Password" + username: "The Username" + 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 `rabbitmq-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 rabbitmq-source-binding.yaml +---- +// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT