Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong Kamelet sample content #5255

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading