kamelets.dns-ip-action.kamelet.yaml Maven / Gradle / Ivy
The newest version!
# ---------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ---------------------------------------------------------------------------
apiVersion: camel.apache.org/v1
kind: Kamelet
metadata:
name: dns-ip-action
annotations:
camel.apache.org/kamelet.support.level: "Stable"
camel.apache.org/catalog.version: "4.8.0"
camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIyLjg3OSAxMjIuODgxIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMjIuODc5IDEyMi44ODEiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwYXRoIGQ9Ik0xMDkuNDY3LDg5LjUwNWMwLjE4MiwwLDAuMzU5LDAuMDE5LDAuNTMxLDAuMDUzYzEuMTQ2LTEuOTk4LDIuMTkxLTQuMDk1LDMuMTM3LTYuMjg3IGMwLjAxOC0wLjA0MywwLjAzNy0wLjA4NSwwLjA1OS0wLjEyN2MxLjQxOC0zLjM0NiwyLjQ4OC02LjgxOSwzLjIwOS0xMC40MmMwLjE5My0wL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40NjEtOS4wNjVjMi43NzQtMi43ODUsNS43OTktNS4yNyw5LjA2NS03LjQ2MWMzLjI3NS0yLjE5OSw2Ljc2OS00LjA5LDEwLjQ3Mi01LjY4NWwwLjAwMSwwLjAwNCBsMC4wMDktMC4wMDRDNDEuMjU1LDMuMTk3LDQ1LjEyNiwxLjk5NSw0OS4xMDcsMS4xOThMNDkuMTA3LDEuMTk4TDQ5LjEwNywxLjE5OHogTTY0LjEzNSw5LjI2OHYxOC43MjNoMTcuODI2IEM3Ny4yNzUsMjEuODE1LDcxLjM0LDE1LjU3NSw2NC4xMzUsOS4yNjhMNjQuMTM1LDkuMjY4TDY0LjEzNSw5LjI2OHogTTY0LjEzNSw5NC44OTF2MTguOTUyIGM3LjY0NS02LjI4MywxMy45LTEyLjYwMSwxOC43NDYtMTguOTUySDY0LjEzNUw2NC4xMzUsOTQuODkxTDY0LjEzNSw5NC44OTF6IE01OC43NDgsMTEzLjg0NVY5NC44OTFINDAgQzQ0Ljg0MywxMDEuMjQxLDUxLjEwMSwxMDcuNTYyLDU4Ljc0OCwxMTMuODQ1TDU4Ljc0OCwxMTMuODQ1TDU4Ljc0OCwxMTMuODQ1eiBNNTguNzQ4LDI3Ljk5MVY5LjI2NiBjLTcuMjA3LDYuMzA3LTEzLjE0MywxMi41NDktMTcuODI3LDE4LjcyNUg1OC43NDhMNTguNzQ4LDI3Ljk5MUw1OC43NDgsMjcuOTkxeiIvPjwvZz48L3N2Zz4="
camel.apache.org/provider: "Apache Software Foundation"
camel.apache.org/kamelet.group: "DNS"
camel.apache.org/kamelet.namespace: "Networking"
labels:
camel.apache.org/kamelet.type: "action"
spec:
definition:
title: "DNS IP Action"
description: |-
Get an IP from a DNS
The Kamelet expects the following headers to be set:
- `domain` / `ce-domain`: as the domain for which we are looking for the IP
If the header won't be set the body will be used as domain to look for.
type: object
dependencies:
- "camel:core"
- "camel:dns"
- "camel:kamelet"
template:
from:
uri: "kamelet:source"
steps:
- choice:
when:
- simple: "${header[domain]}"
steps:
- setHeader:
name: dns.domain
simple: "${header[domain]}"
- simple: "${header[ce-domain]}"
steps:
- setHeader:
name: dns.domain
simple: "${header[ce-domain]}"
otherwise:
steps:
- setHeader:
name: dns.domain
simple: "${body}"
- to:
uri: "dns:ip"
- convertBodyTo:
type: "java.lang.String"