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

acosentino pushed a commit to branch topic-names-matches-filter
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 10df489f234bbb328bf29cd42db011fbceb5f003
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Jun 9 14:36:54 2021 +0200

    Topic Name Matches Filter Action
---
 topic-name-matches-filter-action.kamelet.yaml | 35 +++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/topic-name-matches-filter-action.kamelet.yaml 
b/topic-name-matches-filter-action.kamelet.yaml
new file mode 100644
index 0000000..237d07f
--- /dev/null
+++ b/topic-name-matches-filter-action.kamelet.yaml
@@ -0,0 +1,35 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: topic-name-matches-filter-action
+  labels:
+    camel.apache.org/kamelet.type: "action"
+  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,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG
 [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Actions"
+spec:
+  definition:
+    title: "Kafka Topic Name Matches Filter Action"
+    description: "Filter based on kafka topic value compared to regex"
+    required:
+      - regex
+    properties:
+      regex:
+        title: Regex 
+        description: The Regex to Evaluate against the Kafka topic name
+        type: string
+    type: object
+  dependencies:
+  - "camel:core"
+  - "camel:kamelet"
+  flow:
+    from:
+      uri: kamelet:source
+      steps:
+      - filter:
+          simple: "${header[kafka.TOPIC]} !regex '{{regex}}'"
+          steps:
+            - stop: {}

Reply via email to