templates.kamelet-source.yaml.tmpl Maven / Gradle / Ivy
apiVersion: camel.apache.org/v1alpha1
kind: Kamelet
metadata:
name: {{ .Name }}
labels:
camel.apache.org/kamelet.type: "source"
spec:
definition:
title: "Timer Example"
description: "Produces periodic events with a custom payload"
required:
- message
properties:
period:
title: Period
description: The time interval between two events
type: integer
default: 1000
message:
title: Message
description: The message to generate
type: string
types:
out:
mediaType: text/plain
template:
from:
uri: timer:tick
parameters:
period: "{{period}}"
steps:
- setBody:
constant: "{{message}}"
- setHeader:
name: "Content-Type"
constant: "text/plain"
- to: "kamelet:sink"