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/05/12 13:26:47 UTC
[camel-kamelets] 02/04: Regen catalog
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch regex-router-action
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 6d96f27f137e073b1d17f2e0c342da60d59687c9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed May 12 15:25:23 2021 +0200
Regen catalog
---
.../kamelets/regex-router-action.kamelet.yaml | 39 ++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/regex-router-action.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/regex-router-action.kamelet.yaml
new file mode 100644
index 0000000..ebf0761
--- /dev/null
+++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/regex-router-action.kamelet.yaml
@@ -0,0 +1,39 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: regex-router-action
+ labels:
+ camel.apache.org/kamelet.type: "action"
+ annotations:
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+spec:
+ definition:
+ title: "Regex Router Action"
+ description: "Update the destination using the configured regular expression and replacement string"
+ required:
+ - field
+ - value
+ properties:
+ regex:
+ title: Regex
+ description: Regular Expression for destination
+ type: string
+ replacement:
+ title: Replacement
+ description: Replacement when matching
+ type: string
+ type: object
+ dependencies:
+ - github:apache.camel-kamelets:camel-kamelets-utils:main-SNAPSHOT
+ flow:
+ from:
+ uri: kamelet:source
+ steps:
+ - set-property:
+ name: "regex"
+ constant: "{{regex}}"
+ - set-property:
+ name: "replacement"
+ constant: "{{replacement}}"
+ - bean: "org.apache.camel.kamelets.utils.transform.RegexRouter"