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/04/23 14:20:01 UTC
[camel-kamelets] 05/05: Added Cassandra Sink kamelet
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 07756f03ad3cc112c9cc1d7fb0bd430c1622f8b6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Apr 23 16:19:15 2021 +0200
Added Cassandra Sink kamelet
---
docs/modules/ROOT/pages/cassandra-sink.adoc | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/docs/modules/ROOT/pages/cassandra-sink.adoc b/docs/modules/ROOT/pages/cassandra-sink.adoc
index 78a3fc5..bfd5c03 100644
--- a/docs/modules/ROOT/pages/cassandra-sink.adoc
+++ b/docs/modules/ROOT/pages/cassandra-sink.adoc
@@ -28,9 +28,9 @@ NOTE: Fields marked with ({empty}*) are mandatory.
This section summarizes how the `cassandra-sink` can be used in various contexts.
-=== Knative Source
+=== Knative Sink
-The `cassandra-sink` Kamelet can be used as Knative source by binding it to a Knative object.
+The `cassandra-sink` Kamelet can be used as Knative sink by binding it to a Knative object.
.cassandra-sink-binding.yaml
[source,yaml]
@@ -42,6 +42,11 @@ metadata:
spec:
source:
ref:
+ kind: InMemoryChannel
+ apiVersion: messaging.knative.dev/v1
+ name: mychannel
+ sink:
+ ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: cassandra-sink
@@ -51,11 +56,6 @@ spec:
password: "The Password"
port: 9042
username: "The Username"
- sink:
- ref:
- kind: InMemoryChannel
- apiVersion: messaging.knative.dev/v1
- name: mychannel
----
@@ -63,7 +63,7 @@ Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K i
Save the `cassandra-sink-binding.yaml` file into your hard drive, then configure it according to your needs.
-You can run the source using the following command:
+You can run the sink using the following command:
[source,shell]
----