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 2022/09/30 07:40:42 UTC

[camel-kamelets] 02/02: Elasticsearch-search-source won't let me define basic authentication

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

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

commit 342b9fae9b6c14653b613dae8a20678fb928fce9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Sep 30 09:40:15 2022 +0200

    Elasticsearch-search-source won't let me define basic authentication
---
 .../main/resources/kamelets/elasticsearch-search-source.kamelet.yaml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-search-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-search-source.kamelet.yaml
index 13c3d261..048c8c3d 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-search-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-search-source.kamelet.yaml
@@ -93,6 +93,9 @@ spec:
     beans:
       - name: local-es
         type: "#class:org.apache.camel.component.elasticsearch.ElasticsearchComponent"
+        properties:
+            user: "{{?user}}"
+            password: "{{?password}}"
     from:
       uri: timer:tick
       parameters:
@@ -110,8 +113,6 @@ spec:
               indexName: "{{indexName}}"
               hostAddresses: "{{hostAddresses}}"
               enableSSL: "{{enableSSL}}"
-              user: "{{?user}}"
-              password: "{{?password}}"
         - marshal:
             json:
               library: Gson