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

AWS S3 Source Kamelet add includeBody Option #375

Merged
merged 3 commits into from
Jun 15, 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
8 changes: 8 additions & 0 deletions aws-s3-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ spec:
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: false
includeBody:
title: Include Body
description: If it is true, the exchange will be consumed and put into the body and closed. If false the S3Object stream will be put raw into the body and the headers will be set with the S3 object metadata.
type: boolean
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: true
dependencies:
- "camel:aws2-s3"
- "camel:kamelet"
Expand All @@ -70,6 +77,7 @@ spec:
secretKey: "{{secretKey}}"
accessKey: "{{accessKey}}"
region: "{{region}}"
includeBody: "{{includeBody}}"
deleteAfterRead: "{{deleteAfterRead}}"
steps:
- to: "kamelet:sink"
1 change: 1 addition & 0 deletions docs/modules/ROOT/pages/aws-s3-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The following table summarizes the configuration options available for the `aws-
| *secretKey {empty}* *| Secret Key| The secret key obtained from AWS| string| |
| autoCreateBucket| Autocreate Bucket| Setting the autocreation of the S3 bucket bucketName.| boolean| `false`|
| deleteAfterRead| Auto-delete Objects| Delete objects after consuming them| boolean| `true`|
| includeBody| Include Body| If it is true, the exchange will be consumed and put into the body and closed. If false the S3Object stream will be put raw into the body and the headers will be set with the S3 object metadata.| boolean| `true`|
|===

NOTE: Fields marked with ({empty}*) are mandatory.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ spec:
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: false
includeBody:
title: Include Body
description: If it is true, the exchange will be consumed and put into the body and closed. If false the S3Object stream will be put raw into the body and the headers will be set with the S3 object metadata.
type: boolean
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: true
dependencies:
- "camel:aws2-s3"
- "camel:kamelet"
Expand All @@ -70,6 +77,7 @@ spec:
secretKey: "{{secretKey}}"
accessKey: "{{accessKey}}"
region: "{{region}}"
includeBody: "{{includeBody}}"
deleteAfterRead: "{{deleteAfterRead}}"
steps:
- to: "kamelet:sink"