Skip to content

Commit

Permalink
Fix wrong Kamelet sample content (#5255)
Browse files Browse the repository at this point in the history
  • Loading branch information
claudio4j authored Mar 18, 2024
1 parent 589b163 commit e8c712e
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions pkg/resources/config/samples/bases/camel_v1alpha1_kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,29 @@
apiVersion: camel.apache.org/v1alpha1
kind: Kamelet
metadata:
name: timer-to-log-example
name: example-source
spec:
source:
ref:
apiVersion: camel.apache.org/v1alpha1
kind: Kamelet
name: timer-source
definition:
description: Produces periodic events with a custom payload
properties:
period: 2000
message: Hello world
sink:
ref:
apiVersion: camel.apache.org/v1alpha1
kind: Kamelet
name: log-sink
message:
description: The message to generate
title: Message
type: string
period:
default: 1000
description: The time interval between two events
title: Period
type: integer
required:
- message
title: Example Timer
template:
from:
uri: timer:tick
parameters:
period: "#property:period"
steps:
- setBody:
constant: "#property:message"
- to: kamelet:sink

0 comments on commit e8c712e

Please sign in to comment.