Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solr Source Kamelet: Added credentials field #605

Merged
merged 7 commits into from
Dec 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/solr-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ The following table summarizes the configuration options available for the `solr
| *period {empty}* *| Period between Polls| The interval between fetches to the Solr collection| integer| `10000`|
| *query {empty}* *| Query| The query to submit to Solr| string| |
| *servers {empty}* *| Servers| Comma separated list of Solr Servers and ports| string| |
| password| Password| Password to connect to Solr.| string| |
| username| Username| Username to connect to Solr.| string| |
|===

NOTE: Fields marked with an asterisk ({empty}*) are mandatory.
Expand Down
17 changes: 17 additions & 0 deletions kamelets/solr-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,20 @@ spec:
title: Query
description: The query to submit to Solr
type: string
username:
title: Username
description: Username to connect to Solr.
type: string
x-descriptors:
- urn:camel:group:credentials
password:
title: Password
description: Password to connect to Solr.
type: string
format: password
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:password
- urn:camel:group:credentials
types:
in:
mediaType: application/json
Expand All @@ -80,6 +94,9 @@ spec:
name: "content-type"
- to:
uri: "solr:{{servers}}/solr/{{collection}}"
parameters:
username: "{{?username}}"
password: "{{?password}}"
- marshal:
json:
library: Jackson
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,20 @@ spec:
title: Query
description: The query to submit to Solr
type: string
username:
title: Username
description: Username to connect to Solr.
type: string
x-descriptors:
- urn:camel:group:credentials
password:
title: Password
description: Password to connect to Solr.
type: string
format: password
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:password
- urn:camel:group:credentials
types:
in:
mediaType: application/json
Expand All @@ -80,6 +94,9 @@ spec:
name: "content-type"
- to:
uri: "solr:{{servers}}/solr/{{collection}}"
parameters:
username: "{{?username}}"
password: "{{?password}}"
- marshal:
json:
library: Jackson
Expand Down