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

Minio Source Kamelet #110

Merged
merged 4 commits into from
Mar 30, 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
3 changes: 3 additions & 0 deletions docs/modules/ROOT/pages/minio-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ The following table summarizes the configuration options available for the `mini
| Property| Name| Description| Type| Default| Example
| *accessKey {empty}* *| Access Key| The access key obtained from Minio| string| |
| *bucketName {empty}* *| Bucket Name| The Minio Bucket name| string| |
| *endpoint {empty}* *| Endpoint| The Minio Endpoint, it can be an URL, domain name, IPv4 address or IPv6 address.| string| | `"http://localhost:9000"`
| *secretKey {empty}* *| Secret Key| The secret key obtained from Minio| 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`|
|===

Expand Down Expand Up @@ -43,6 +45,7 @@ spec:
properties:
accessKey: "The Access Key"
bucketName: "The Bucket Name"
endpoint: "http://localhost:9000"
secretKey: "The Secret Key"
sink:
ref:
Expand Down
15 changes: 15 additions & 0 deletions minio-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
- bucketName
- accessKey
- secretKey
- endpoint
properties:
bucketName:
title: Bucket Name
Expand All @@ -40,6 +41,18 @@ spec:
type: string
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:password
endpoint:
title: Endpoint
description: The Minio Endpoint, it can be an URL, domain name, IPv4 address or IPv6 address.
type: string
example: http://localhost:9000
autoCreateBucket:
title: Autocreate bucket
description: Setting the autocreation of the S3 bucket bucketName.
type: boolean
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: false
types:
out:
mediaType: application/json
Expand All @@ -49,8 +62,10 @@ spec:
from:
uri: "minio:{{bucketName}}"
parameters:
autoCreateBucket: "{{autoCreateBucket}}"
secretKey: "{{secretKey}}"
accessKey: "{{accessKey}}"
endpoint: "{{endpoint}}"
deleteAfterRead: "{{deleteAfterRead}}"
steps:
- marshal:
Expand Down