You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cl...@apache.org on 2024/03/15 18:31:38 UTC
(camel-k) 01/01: Fix wrong Kamelet sample content
This is an automated email from the ASF dual-hosted git repository.
claudio4j pushed a commit to branch claudio4j-patch-2
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit bc4267d1986abc1b63d1af8c98f294ca3f69b946
Author: Claudio Miranda <cl...@claudius.com.br>
AuthorDate: Fri Mar 15 15:31:32 2024 -0300
Fix wrong Kamelet sample content
---
.../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 83cc20975..b44a4ea45 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