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

acosentino pushed a commit to branch minio-kamelet
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 7b1c031bdb95b076f3585b79ed080cf806f07b5d
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Wed Feb 24 16:57:38 2021 +0100

    Added Minio Kamelet Source
---
 .../ROOT/assets/images/kamelets/minio-source.svg   |  1 +
 minio-source.kamelet.yaml                          | 58 ++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/minio-source.svg 
b/docs/modules/ROOT/assets/images/kamelets/minio-source.svg
new file mode 100644
index 0000000..e928e78
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/minio-source.svg
@@ -0,0 +1 @@
+<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg"; viewBox="0 0 
162.612 24.465"><path d="M52.751.414h9.108v23.63h-9.108zM41.711.74l-18.488 
9.92a.919.919 0 0 1-.856 0L3.879.74A2.808 2.808 0 0 0 2.558.414h-.023A2.4 2.4 0 
0 0 0 2.641v21.376h9.1V13.842a.918.918 0 0 1 1.385-.682l10.361 5.568a3.634 
3.634 0 0 0 3.336.028l10.933-5.634a.917.917 0 0 1 1.371.69v10.205h9.1V2.641A2.4 
2.4 0 0 0 43.055.414h-.023a2.808 2.808 0 0 
0-1.321.326zm65.564-.326h-9.237v10.755a.913.913 0 0 1-1.338.706L72 [...]
\ No newline at end of file
diff --git a/minio-source.kamelet.yaml b/minio-source.kamelet.yaml
new file mode 100644
index 0000000..a989317
--- /dev/null
+++ b/minio-source.kamelet.yaml
@@ -0,0 +1,58 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: minio-source
+  annotations:
+    camel.apache.org/kamelet.icon: 
"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyNDguMiAzMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3QyOHtmaWxsOiM4YzMxMjN9LnN0Mjl7ZmlsbDojZTA1MjQzfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MjgiIGQ9Ik0yMCA1Mi4xTDAgNjJ2MTc1LjVsMjAgOS45LjEtLjFWNTIuMmwtLjEtLjEiLz48cGF0aCBjbGFzcz0ic3QyOSIgZD0iTTEyNyAyMjJMMjAgMjQ3LjVWNTIuMUwxMjcgNzd2MTQ1Ii8+PHBhdGggY2xhc3M9InN0MjgiIG
 [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+  labels:
+    camel.apache.org/kamelet.type: "source"
+spec:
+  definition:
+    title: "Minio Source"
+    description: |-
+      Receive data from Minio.
+    required:
+      - bucketName
+      - accessKey
+      - secretKey
+    properties:
+      bucketNameOrArn:
+        title: Bucket Name
+        description: The Minio Bucket name
+        type: string
+      deleteAfterRead:
+        title: Auto-delete objects
+        description: Delete objects after consuming them
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: true
+      accessKey:
+        title: Access Key
+        description: The access key obtained from Minio
+        type: string
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+      secretKey:
+        title: Secret Key
+        description: The secret key obtained from Minio
+        type: string
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+  types:
+    out:
+      mediaType: application/json
+  dependencies:
+  - "camel:jackson"
+  flow:
+    from:
+      uri: "minio:{{bucketName}}"
+      parameters:
+        secretKey: "{{secretKey}}"
+        accessKey: "{{accessKey}}"
+        deleteAfterRead: "{{deleteAfterRead}}"
+      steps:
+      - marshal:
+          json: {}
+      - to: "kamelet:sink"

Reply via email to