All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.kamelet-source.yaml.tmpl Maven / Gradle / Ivy

There is a newer version: 4.8.1
Show newest version
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"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy