You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/11/10 12:37:11 UTC

[camel-kamelets] 01/12: Added Couchbase Sink Kamelet

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

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

commit e65f38102e6a6618a446a147cbca1dce1a47dd06
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Nov 10 13:25:29 2021 +0100

    Added Couchbase Sink Kamelet
---
 couchbase-sink.kamelet.yaml                        | 79 ++++++++++++++++++++++
 .../resources/kamelets/couchbase-sink.kamelet.yaml | 79 ++++++++++++++++++++++
 2 files changed, 158 insertions(+)

diff --git a/couchbase-sink.kamelet.yaml b/couchbase-sink.kamelet.yaml
new file mode 100644
index 0000000..100352d
--- /dev/null
+++ b/couchbase-sink.kamelet.yaml
@@ -0,0 +1,79 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: couchbase-sink
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyNDguMiAzMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3QyOHtmaWxsOiM4YzMxMjN9LnN0Mjl7ZmlsbDojZTA1MjQzfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MjgiIGQ9Ik0yMCA1Mi4xTDAgNjJ2MTc1LjVsMjAgOS45LjEtLjFWNTIuMmwtLjEtLjEiLz48cGF0aCBjbGFzcz0ic3QyOSIgZD0iTTEyNyAyMjJMMjAgMjQ3LjVWNTIuMUwxMjcgNzd2MTQ1Ii8+PHBhdGggY2xhc3M9InN0MjgiIG [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Couchbase"
+  labels:
+    camel.apache.org/kamelet.type: "sink"
+spec:
+  definition:
+    title: "Couchbase Sink"
+    description: |-
+      Send documents to Couchbase.
+    required:
+      - protocol
+      - hostname
+      - bucket
+    type: object
+    properties:
+      protocol:
+        title: Protocol
+        description: The protocol to use
+        type: string
+      hostname:
+        title: Hostname
+        description: The hostname to use
+        type: string
+      port:
+        title: Port
+        description: The port to use
+        type: int
+        default: 8091
+      bucket:
+        title: Bucket
+        description: The bucket to use
+        type: string
+      username:
+        title: Username
+        description: Username to connect to Infinispan.
+        type: string
+        x-descriptors:
+        - urn:camel:group:credentials
+      password:
+        title: Password
+        description: Password to connect to Infinispan.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+        - urn:camel:group:credentials
+      startingId:
+        title: Starting Id
+        description: The starting id
+        type: long
+        default: 1
+      autoStartId:
+        title: Auto Start Id
+        description: Auto Start Id or not
+        type: boolean
+        default: true
+  dependencies:
+    - "camel:couchbase"
+    - "camel:kamelet"
+  flow:
+    from:
+      uri: "kamelet:source"
+      steps:
+      - to:
+          uri: "couchbase:{{protocol}}://{{hostname}}"
+          parameters:
+            bucket: "{{bucket}}"
+            autoStartIdForInserts: "{{autoStartId}}"
+            startingIdForInsertsFrom: "{{startingId}}"
+            username: "{{username}}"
+            password: "{{password}}"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/couchbase-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/couchbase-sink.kamelet.yaml
new file mode 100644
index 0000000..da2b281
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/couchbase-sink.kamelet.yaml
@@ -0,0 +1,79 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: couchbase-sink
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyNDguMiAzMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3QyOHtmaWxsOiM4YzMxMjN9LnN0Mjl7ZmlsbDojZTA1MjQzfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MjgiIGQ9Ik0yMCA1Mi4xTDAgNjJ2MTc1LjVsMjAgOS45LjEtLjFWNTIuMmwtLjEtLjEiLz48cGF0aCBjbGFzcz0ic3QyOSIgZD0iTTEyNyAyMjJMMjAgMjQ3LjVWNTIuMUwxMjcgNzd2MTQ1Ii8+PHBhdGggY2xhc3M9InN0MjgiIG [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Couchbase"
+  labels:
+    camel.apache.org/kamelet.type: "sink"
+spec:
+  definition:
+    title: "Couchbase Sink"
+    description: |-
+      Send documents to Couchbase.
+    required:
+      - protocol
+      - hostname
+      - bucket
+    type: object
+    properties:
+      protocol:
+        title: Protocol
+        description: The protocol to use
+        type: string
+      hostname:
+        title: Hostname
+        description: The hostname to use
+        type: string
+      port:
+        title: Port
+        description: The port to use
+        type: int
+        default: 8091
+      bucket:
+        title: Bucket
+        description: The bucket to use
+        type: string
+      username:
+        title: Username
+        description: Username to connect to Infinispan.
+        type: string
+        x-descriptors:
+        - urn:camel:group:credentials
+      password:
+        title: Password
+        description: Password to connect to Infinispan.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+        - urn:camel:group:credentials
+      startingId:
+        title: Starting Id
+        description: The starting id
+        type: int
+        default: 1
+      autoStartId:
+        title: Auto Start Id
+        description: Auto Start Id or not
+        type: boolean
+        default: true
+  dependencies:
+    - "camel:couchbase"
+    - "camel:kamelet"
+  flow:
+    from:
+      uri: "kamelet:source"
+      steps:
+      - to:
+          uri: "couchbase:{{protocol}}://{{hostname}}"
+          parameters:
+            bucket: "{{bucket}}"
+            autoStartIdForInserts: "{{autoStartId}}"
+            startingIdForInsertsFrom: "{{startingId}}"
+            username: "{{username}}"
+            password: "{{password}}"