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/11/23 14:05:02 UTC

[camel-kamelets] branch main updated (1bdff83 -> 254d77b)

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 1bdff83  Do not use kamelet-reify anymore - Infinispan Source
     new a5a5a31  Do not use kamelet-reify anymore - Elasticsearch Index Sink Kamelet
     new 35e63ff  Do not use kamelet-reify anymore - Elasticsearch Index Sink Kamelet
     new 254d77b  Do not use kamelet-reify anymore - Elasticsearch Index Sink Kamelet

The 3 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:
 docs/modules/ROOT/pages/elasticsearch-index-sink.adoc     |  1 -
 elasticsearch-index-sink.kamelet.yaml                     | 15 ++++-----------
 .../kamelets/elasticsearch-index-sink.kamelet.yaml        | 15 ++++-----------
 3 files changed, 8 insertions(+), 23 deletions(-)

[camel-kamelets] 02/03: Do not use kamelet-reify anymore - Elasticsearch Index Sink 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 35e63ffe2ac53468551faff10d40d42c0a41e382
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Nov 23 15:00:13 2021 +0100

    Do not use kamelet-reify anymore - Elasticsearch Index Sink Kamelet
---
 .../kamelets/elasticsearch-index-sink.kamelet.yaml        | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml
index 91fdaa6..4838398 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml
@@ -11,15 +11,6 @@ metadata:
     camel.apache.org/provider: "Apache Software Foundation"
     camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1NTAgMjUwIiB2aWV3Qm94PSI3Nyw4Myw0MTAsOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiA8cGF0aCBkPSJtMTc4IDEwMi41aDMxM3Y0MWgtMzEzeiIgZmlsbD0ibm9uZSIvPgogPGcgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyI+CiAgPHBhdGggZD0ibTE5My4zIDEzOS40Yy00IDAtNy4yLTEuMi05LjUtMy41cy0zLjQtNS42LTMuNC05LjdjMC00LjIgMS4xLTcuNiAzLjItMTBzNS0zLjYgOC43LTMuNmMzLjQgMCA2Lj [...]
 spec:
-  sources:
-    - content: |-
-        public class ESWorkaround extends org.apache.camel.builder.RouteBuilder {
-          @Override
-          public void configure() throws Exception {
-            getContext().setAutowiredEnabled(false);
-          }
-        }
-      name: ESWorkaround.java
   definition:
     title: "ElasticSearch Index Sink"
     description: |-
@@ -83,11 +74,13 @@ spec:
   dependencies:
     - "camel:jackson"
     - "camel:kamelet"
-    - "mvn:org.apache.camel.k:camel-k-kamelet-reify"
     - "camel:elasticsearch-rest"
     - "camel:gson"
     - "camel:bean"
   flow:
+    beans:
+      - name: local-es
+        type: "#class:org.apache.camel.component.elasticsearch.ElasticsearchComponent"
     from:
       uri: kamelet:source
       steps:
@@ -121,7 +114,7 @@ spec:
                 name: "indexName"
                 simple: "${header[ce-indexname]}"
       - to:
-          uri: "kamelet-reify:elasticsearch-rest:{{clusterName}}"
+          uri: "{{local-es}}:{{clusterName}}"
           parameters:
             operation: "INDEX"
             hostAddresses: "{{hostAddresses}}"

[camel-kamelets] 03/03: Do not use kamelet-reify anymore - Elasticsearch Index Sink 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 254d77bb037c3b2adff51d157f6affc402fa8ab3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Nov 23 15:00:38 2021 +0100

    Do not use kamelet-reify anymore - Elasticsearch Index Sink Kamelet
---
 docs/modules/ROOT/pages/elasticsearch-index-sink.adoc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/docs/modules/ROOT/pages/elasticsearch-index-sink.adoc b/docs/modules/ROOT/pages/elasticsearch-index-sink.adoc
index 76e742e..c28bd36 100644
--- a/docs/modules/ROOT/pages/elasticsearch-index-sink.adoc
+++ b/docs/modules/ROOT/pages/elasticsearch-index-sink.adoc
@@ -41,7 +41,6 @@ At runtime, the `elasticsearch-index-sink` Kamelet relies upon the presence of t
 
 - camel:jackson
 - camel:kamelet
-- mvn:org.apache.camel.k:camel-k-kamelet-reify
 - camel:elasticsearch-rest
 - camel:gson
 - camel:bean 

[camel-kamelets] 01/03: Do not use kamelet-reify anymore - Elasticsearch Index Sink 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 a5a5a315eddcbff6ed49ef313259106fc7630f41
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Nov 23 14:59:39 2021 +0100

    Do not use kamelet-reify anymore - Elasticsearch Index Sink Kamelet
---
 elasticsearch-index-sink.kamelet.yaml | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/elasticsearch-index-sink.kamelet.yaml b/elasticsearch-index-sink.kamelet.yaml
index 91fdaa6..4838398 100644
--- a/elasticsearch-index-sink.kamelet.yaml
+++ b/elasticsearch-index-sink.kamelet.yaml
@@ -11,15 +11,6 @@ metadata:
     camel.apache.org/provider: "Apache Software Foundation"
     camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1NTAgMjUwIiB2aWV3Qm94PSI3Nyw4Myw0MTAsOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiA8cGF0aCBkPSJtMTc4IDEwMi41aDMxM3Y0MWgtMzEzeiIgZmlsbD0ibm9uZSIvPgogPGcgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyI+CiAgPHBhdGggZD0ibTE5My4zIDEzOS40Yy00IDAtNy4yLTEuMi05LjUtMy41cy0zLjQtNS42LTMuNC05LjdjMC00LjIgMS4xLTcuNiAzLjItMTBzNS0zLjYgOC43LTMuNmMzLjQgMCA2Lj [...]
 spec:
-  sources:
-    - content: |-
-        public class ESWorkaround extends org.apache.camel.builder.RouteBuilder {
-          @Override
-          public void configure() throws Exception {
-            getContext().setAutowiredEnabled(false);
-          }
-        }
-      name: ESWorkaround.java
   definition:
     title: "ElasticSearch Index Sink"
     description: |-
@@ -83,11 +74,13 @@ spec:
   dependencies:
     - "camel:jackson"
     - "camel:kamelet"
-    - "mvn:org.apache.camel.k:camel-k-kamelet-reify"
     - "camel:elasticsearch-rest"
     - "camel:gson"
     - "camel:bean"
   flow:
+    beans:
+      - name: local-es
+        type: "#class:org.apache.camel.component.elasticsearch.ElasticsearchComponent"
     from:
       uri: kamelet:source
       steps:
@@ -121,7 +114,7 @@ spec:
                 name: "indexName"
                 simple: "${header[ce-indexname]}"
       - to:
-          uri: "kamelet-reify:elasticsearch-rest:{{clusterName}}"
+          uri: "{{local-es}}:{{clusterName}}"
           parameters:
             operation: "INDEX"
             hostAddresses: "{{hostAddresses}}"