You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cd...@apache.org on 2023/12/09 18:09:20 UTC
(camel-kamelets) branch main updated: chore: Add coffee source Kamelet
This is an automated email from the ASF dual-hosted git repository.
cdeppisch pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new 0ff5bec3 chore: Add coffee source Kamelet
0ff5bec3 is described below
commit 0ff5bec3be0a239604e1a8238d06d63ab2863b1e
Author: Christoph Deppisch <cd...@redhat.com>
AuthorDate: Fri Dec 8 21:57:18 2023 +0100
chore: Add coffee source Kamelet
---
kamelets/coffee-source.kamelet.yaml | 41 ++++++++++++++++++++++
.../resources/kamelets/coffee-source.kamelet.yaml | 41 ++++++++++++++++++++++
2 files changed, 82 insertions(+)
diff --git a/kamelets/coffee-source.kamelet.yaml b/kamelets/coffee-source.kamelet.yaml
new file mode 100644
index 00000000..4fb6a1b9
--- /dev/null
+++ b/kamelets/coffee-source.kamelet.yaml
@@ -0,0 +1,41 @@
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+ name: coffee-source
+ annotations:
+ camel.apache.org/kamelet.support.level: "Stable"
+ camel.apache.org/catalog.version: "4.3.0-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iOTJwdCIgd2lkdGg9IjkycHQiIHZlcnNpb249IjEuMCIgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+Cg [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "Coffees"
+ camel.apache.org/kamelet.namespace: "Dataset"
+ labels:
+ camel.apache.org/kamelet.type: "source"
+spec:
+ definition:
+ title: "Coffee Source"
+ description: "Produces periodic events about coffees!"
+ type: object
+ properties:
+ period:
+ title: Period
+ description: The time interval between two events
+ type: integer
+ default: 5000
+ types:
+ out:
+ mediaType: application/json
+ dependencies:
+ - "camel:timer"
+ - "camel:http"
+ - "camel:kamelet"
+ template:
+ from:
+ uri: "timer:coffee"
+ parameters:
+ period: "{{period}}"
+ steps:
+ - to: https://random-data-api.com/api/coffee/random_coffee
+ - removeHeaders:
+ pattern: '*'
+ - to: "kamelet:sink"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/coffee-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/coffee-source.kamelet.yaml
new file mode 100644
index 00000000..4fb6a1b9
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/coffee-source.kamelet.yaml
@@ -0,0 +1,41 @@
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+ name: coffee-source
+ annotations:
+ camel.apache.org/kamelet.support.level: "Stable"
+ camel.apache.org/catalog.version: "4.3.0-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iOTJwdCIgd2lkdGg9IjkycHQiIHZlcnNpb249IjEuMCIgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+Cg [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "Coffees"
+ camel.apache.org/kamelet.namespace: "Dataset"
+ labels:
+ camel.apache.org/kamelet.type: "source"
+spec:
+ definition:
+ title: "Coffee Source"
+ description: "Produces periodic events about coffees!"
+ type: object
+ properties:
+ period:
+ title: Period
+ description: The time interval between two events
+ type: integer
+ default: 5000
+ types:
+ out:
+ mediaType: application/json
+ dependencies:
+ - "camel:timer"
+ - "camel:http"
+ - "camel:kamelet"
+ template:
+ from:
+ uri: "timer:coffee"
+ parameters:
+ period: "{{period}}"
+ steps:
+ - to: https://random-data-api.com/api/coffee/random_coffee
+ - removeHeaders:
+ pattern: '*'
+ - to: "kamelet:sink"