kamelets.nats-source.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: nats-source
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,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3NDQuMiIgaGVpZ2h0PSIxODEuODEiIHZpZXdCb3g9IjAgMCA3NDQuMiAxODEuODEiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojMjlhOWRlO30uY2xzLTJ7ZmlsbDojZmZmO30uY2xzLTN7ZmlsbDojMzNhNjc1O30uY2xzLTR7ZmlsbDojMzY1YzkzO30uY2xzLTV7ZmlsbDojOGRjMzQxO308L3N0eWxlPjwvZGVmcz48dGl0bGU+bmF0cy1sb2dvLWZyZWVsb2dvdmVjdG9ycy5uZXQ8L3RpdGxlPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTIuOSwyODQuMUgxNzhjLS4wNiw0Ny4zNS4wOCw5NC43Mi0uMDcsMTQyLjA3LTE5LjA1LDAtMzguMSwwLTU3LjE0LDAtLjI0LDEzLjI1LS4wNiwyNi41LS4wOSwzOS43NXEtMjEuNDUtMTkuOC00M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MjEsMTEuNjYsMjAuMjQsNS4xMyw0MS4zNywyLjY2LDYxLjkxLDUuNDcsMi43Ni4yNSw2LjI3LDEuNTcsNi4zOSw0Ljg1LjMsMi45LTIuMjcsNS00Ljg2LDUuNTYtNi4xNSwxLjQ5LTEyLjUyLDEuNzItMTguODEsMS43NmExNzcuODQsMTc3Ljg0LDAsMCwxLTUyLjItNS44NmMtMy42OS0uODQtNy4xLTIuNi0xMC44NS0zLjIyLDAsNS45LDAsMTEuODEsMCwxNy43MSwxOSw2Ljg0LDM5LjU0LDguMjQsNTkuNjEsOC4wNiwxMS4xNS0uMzQsMjIuNTUtLjg3LDMzLjE3LTQuNiw1LjYyLTIsMTEuMTEtNS43NywxMy4wOS0xMS42MiwyLjMtNi43NCwyLjI3LTE0LjY0LTEuMzUtMjAuOTItMy4zMy01LjUxLTkuOS03LjY0LTE1LjgzLTktMTkuMjMtMy44NS0zOS0yLTU4LjM3LTQuMTItMi41OS0uNTEtNi0uNzMtNy4yMS0zLjQ3YTQuNzcsNC43NywwLDAsMSwyLjg4LTYuNDdjNS44Mi0yLjA1LDEyLjA3LTEuOTMsMTguMTUtMi4yNCwxOS4yMi0uNTIsMzguODgsMS40Miw1Ni44OSw4LjQ0LDAtNiwwLTEyLjA4LDAtMTguMTJBMTAxLjU2LDEwMS41NiwwLDAsMCw2ODcuOTEsMzE4LDE5NS4wNiwxOTUuMDYsMCwwLDAsNjM0LjMzLDMxNy4wN1oiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yLjkgLTI4NC4xKSIvPjwvc3ZnPg=="
camel.apache.org/provider: "Apache Software Foundation"
camel.apache.org/kamelet.group: "NATS"
camel.apache.org/kamelet.namespace: "Messaging"
labels:
camel.apache.org/kamelet.type: "source"
spec:
definition:
title: "NATS Source"
description: |-
Receive data from NATS topics.
required:
- topic
- servers
type: object
properties:
topic:
title: Topic
description: NATS Topic name
type: string
servers:
title: Servers
description: Comma separated list of NATS Servers
type: string
format: password
x-descriptors:
- urn:camel:group:credentials
types:
out:
mediaType: application/json
dependencies:
- "camel:jackson"
- "camel:nats"
- "camel:kamelet"
template:
from:
uri: "nats:{{topic}}"
parameters:
servers: "{{servers}}"
steps:
- marshal:
json: {}
- to: "kamelet:sink"