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

valdar pushed a commit to branch mongodb-sink-otional
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 147771a4ef13a374815c0574dbd5604111ff064b
Author: Andrea Tarocchi <and...@tarocch.it>
AuthorDate: Sun Sep 5 17:34:13 2021 +0200

    Changed properties username and password as optional.
    
    A Mongodb server can be configured without authentication, for example for 
testing purposes.
---
 mongodb-sink.kamelet.yaml | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/mongodb-sink.kamelet.yaml b/mongodb-sink.kamelet.yaml
index ec7e07f..00e40a8 100644
--- a/mongodb-sink.kamelet.yaml
+++ b/mongodb-sink.kamelet.yaml
@@ -24,8 +24,6 @@ spec:
     required:
       - hosts
       - collection
-      - password
-      - username
       - database
     type: object
     properties:
@@ -96,7 +94,7 @@ spec:
             writeConcern: "{{?writeConcern}}"
             hosts: "{{hosts}}"
             collection: "{{collection}}"
-            password: "{{password}}"
-            username: "{{username}}"
+            password: "{{?password}}"
+            username: "{{?username}}"
             database: "{{database}}"
             operation: "insert"

Reply via email to