This is an automated email from the ASF dual-hosted git repository.

gfournier pushed a commit to branch release-2.2.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/release-2.2.x by this push:
     new dc114bdf2 Add Kamelet v1alpha1 sample
dc114bdf2 is described below

commit dc114bdf24f182ae8687bc21977dd34beafb0d9c
Author: Claudio Miranda <clau...@claudius.com.br>
AuthorDate: Mon Mar 18 19:14:21 2024 +0000

    Add Kamelet v1alpha1 sample
---
 .../camel_v1alpha1_kamelet.yaml}                   | 46 ++++++++++++++--------
 config/samples/kustomization.yaml                  |  1 +
 2 files changed, 30 insertions(+), 17 deletions(-)

diff --git a/config/samples/kustomization.yaml 
b/config/samples/bases/camel_v1alpha1_kamelet.yaml
similarity index 58%
copy from config/samples/kustomization.yaml
copy to config/samples/bases/camel_v1alpha1_kamelet.yaml
index 85c8ee6a7..b44a4ea45 100644
--- a/config/samples/kustomization.yaml
+++ b/config/samples/bases/camel_v1alpha1_kamelet.yaml
@@ -15,20 +15,32 @@
 # limitations under the License.
 # ---------------------------------------------------------------------------
 
-#
-# * patches/integration-platform-patch.yaml
-# customizes the integration platform custom resource
-# Edit the patch manually to add required configuration
-#
-resources:
-- bases/camel_v1_integrationplatform.yaml
-- bases/camel_v1_integration.yaml
-- bases/camel_v1_integrationkit.yaml
-- bases/camel_v1_camelcatalog.yaml
-- bases/camel_v1_build.yaml
-- bases/camel_v1_kamelet.yaml
-- bases/camel_v1_pipe.yaml
-- bases/camel_v1alpha1_kameletbinding.yaml
-
-patchesStrategicMerge:
-- patch-integration-platform.yaml
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: example-source
+spec:
+  definition:
+    description: Produces periodic events with a custom payload
+    properties:
+      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
diff --git a/config/samples/kustomization.yaml 
b/config/samples/kustomization.yaml
index 85c8ee6a7..1a9e50d7b 100644
--- a/config/samples/kustomization.yaml
+++ b/config/samples/kustomization.yaml
@@ -28,6 +28,7 @@ resources:
 - bases/camel_v1_build.yaml
 - bases/camel_v1_kamelet.yaml
 - bases/camel_v1_pipe.yaml
+- bases/camel_v1alpha1_kamelet.yaml
 - bases/camel_v1alpha1_kameletbinding.yaml
 
 patchesStrategicMerge:

Reply via email to