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/12/06 09:59:35 UTC

[camel-kamelets] 05/08: Added Solr Source Kamelet templates

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch solr-query
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit bd905d4e7141948132e50e90a6c340b9576308fd
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Dec 6 10:55:33 2021 +0100

    Added Solr Source Kamelet templates
---
 templates/bindings/camel-k/solr-source-binding.yaml | 20 ++++++++++++++++++++
 templates/bindings/core/solr-source-binding.yaml    | 11 +++++++++++
 2 files changed, 31 insertions(+)

diff --git a/templates/bindings/camel-k/solr-source-binding.yaml b/templates/bindings/camel-k/solr-source-binding.yaml
new file mode 100644
index 0000000..74c42fc
--- /dev/null
+++ b/templates/bindings/camel-k/solr-source-binding.yaml
@@ -0,0 +1,20 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: solr-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: solr-source
+    properties:
+      collection: "The Collection"
+      query: "The Query"
+      servers: "The Servers"
+  sink:
+    ref:
+      kind: KafkaTopic
+      apiVersion: kafka.strimzi.io/v1beta1
+      name: my-topic
+  
\ No newline at end of file
diff --git a/templates/bindings/core/solr-source-binding.yaml b/templates/bindings/core/solr-source-binding.yaml
new file mode 100644
index 0000000..e1c3b4a
--- /dev/null
+++ b/templates/bindings/core/solr-source-binding.yaml
@@ -0,0 +1,11 @@
+- route:
+    from:
+      uri: "kamelet:solr-source"
+      parameters:
+        collection: "The Collection"
+        query: "The Query"
+        servers: "The Servers"
+    steps:
+      - to:
+          uri: "log:info"
+    
\ No newline at end of file