You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by va...@apache.org on 2021/09/05 15:34:18 UTC

[camel-kamelets] branch mongodb-sink-otional created (now 147771a)

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

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


      at 147771a  Changed properties username and password as optional.

This branch includes the following new commits:

     new 147771a  Changed properties username and password as optional.

The 1 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.


[camel-kamelets] 01/01: Changed properties username and password as optional.

Posted by va...@apache.org.
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 <an...@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"