From e8c712e0677538134ca2422063614d1dcf3fac9e Mon Sep 17 00:00:00 2001 From: Claudio Miranda Date: Mon, 18 Mar 2024 06:56:25 -0300 Subject: [PATCH] Fix wrong Kamelet sample content (#5255) --- .../samples/bases/camel_v1alpha1_kamelet.yaml | 37 ++++++++++++------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/pkg/resources/config/samples/bases/camel_v1alpha1_kamelet.yaml b/pkg/resources/config/samples/bases/camel_v1alpha1_kamelet.yaml index 83cc20975c..b44a4ea45f 100644 --- a/pkg/resources/config/samples/bases/camel_v1alpha1_kamelet.yaml +++ b/pkg/resources/config/samples/bases/camel_v1alpha1_kamelet.yaml @@ -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