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 f4da99a0baca144624c4c8f6b88a6b3a48130da1
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Sep 30 09:36:52 2022 +0200

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

diff --git a/kamelets/elasticsearch-search-source.kamelet.yaml 
b/kamelets/elasticsearch-search-source.kamelet.yaml
index 13c3d261..048c8c3d 100644
--- a/kamelets/elasticsearch-search-source.kamelet.yaml
+++ b/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

Reply via email to