This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch header-matches in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 281ead05e82261d74c2b75f05a9fe6aeb573d211 Author: Andrea Cosentino <[email protected]> AuthorDate: Thu Jun 10 08:29:14 2021 +0200 Header Matches Filter Action Kamelet --- header-matches-filter-action.kamelet.yaml | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/header-matches-filter-action.kamelet.yaml b/header-matches-filter-action.kamelet.yaml new file mode 100644 index 0000000..3fbc29a --- /dev/null +++ b/header-matches-filter-action.kamelet.yaml @@ -0,0 +1,40 @@ +apiVersion: camel.apache.org/v1alpha1 +kind: Kamelet +metadata: + name: header-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: "Header Matches Filter Action" + description: "Filter based on header value compared to regex" + required: + - regex + properties: + regex: + title: Regex + description: The Regex to Evaluate against the Kafka topic name + type: string + headerName: + title: Header Name + description: The header name to get the value to compare + type: string + example: headerName + type: object + dependencies: + - "camel:core" + - "camel:kamelet" + flow: + from: + uri: kamelet:source + steps: + - filter: + simple: "${header[{{headerName}}]} !regex '{{regex}}'" + steps: + - stop: {}
