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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated sources regen #405

Merged
merged 1 commit into from
Jul 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
Send documents to MongoDB.

This Kamelet expects a JSON as body.

Properties you can as headers:

`db-upsert` / `ce-db-upsert` If the database should create the element if it does not exist. Boolean value.
required:
- hosts
- collection
Expand Down Expand Up @@ -48,6 +52,17 @@ spec:
title: MongoDB Database
description: Sets the name of the MongoDB database to target.
type: string
writeConcern:
title: Write Concern
description: Configure the level of acknowledgment requested from MongoDB for write operations, possible values are ACKNOWLEDGED, W1, W2, W3, UNACKNOWLEDGED, JOURNALED, MAJORITY.
type: string
createCollection:
title: Collection
description: Create collection during initialisation if it doesn't exist.
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
types:
in:
mediaType: application/json
Expand All @@ -62,9 +77,23 @@ spec:
from:
uri: kamelet:source
steps:
- choice:
when:
- simple: "${header[db-upsert]}"
steps:
- set-header:
name: CamelMongoDbUpsert
simple: "${header[db-upsert]}"
- simple: "${header[ce-db-upsert]}"
steps:
- set-header:
name: CamelMongoDbUpsert
simple: "${header[ce-db-upsert]}"
- to:
uri: "{{local-mongodb}}:test"
parameters:
createCollection: "{{?createCollection}}"
writeConcern: "{{?writeConcern}}"
hosts: "{{hosts}}"
collection: "{{collection}}"
password: "{{password}}"
Expand Down