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 15:48:45 UTC
(camel-k) branch main updated: Add Kamelet v1alpha1 sample (#5254)
This is an automated email from the ASF dual-hosted git repository.
claudio4j pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 546efa566 Add Kamelet v1alpha1 sample (#5254)
546efa566 is described below
commit 546efa56610ef892046dab76b5a60d2246004363
Author: Claudio Miranda <cl...@claudius.com.br>
AuthorDate: Fri Mar 15 12:48:39 2024 -0300
Add Kamelet v1alpha1 sample (#5254)
---
.../camel_v1alpha1_kamelet.yaml} | 36 +++++++++++-----------
pkg/resources/config/samples/kustomization.yaml | 1 +
2 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/pkg/resources/config/samples/kustomization.yaml b/pkg/resources/config/samples/bases/camel_v1alpha1_kamelet.yaml
similarity index 63%
copy from pkg/resources/config/samples/kustomization.yaml
copy to pkg/resources/config/samples/bases/camel_v1alpha1_kamelet.yaml
index e973532e2..83cc20975 100644
--- a/pkg/resources/config/samples/kustomization.yaml
+++ b/pkg/resources/config/samples/bases/camel_v1alpha1_kamelet.yaml
@@ -15,21 +15,21 @@
# 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_integrationprofile.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: timer-to-log-example
+spec:
+ source:
+ ref:
+ apiVersion: camel.apache.org/v1alpha1
+ kind: Kamelet
+ name: timer-source
+ properties:
+ period: 2000
+ message: Hello world
+ sink:
+ ref:
+ apiVersion: camel.apache.org/v1alpha1
+ kind: Kamelet
+ name: log-sink
diff --git a/pkg/resources/config/samples/kustomization.yaml b/pkg/resources/config/samples/kustomization.yaml
index e973532e2..cda69fdad 100644
--- a/pkg/resources/config/samples/kustomization.yaml
+++ b/pkg/resources/config/samples/kustomization.yaml
@@ -29,6 +29,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: