This is an automated email from the ASF dual-hosted git repository. pcongiusti 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 1592cf664 chore: Fix CRD samples 1592cf664 is described below commit 1592cf6643e3739e92ccaf26bb0e61843ba413b3 Author: Christoph Deppisch <cdeppi...@redhat.com> AuthorDate: Fri Dec 8 21:32:41 2023 +0100 chore: Fix CRD samples - Users should be able to apply these samples as custom resources - Samples should be functional and able to run on Kubernetes --- config/samples/bases/camel_v1_kamelet.yaml | 6 +++--- config/samples/bases/camel_v1_pipe.yaml | 13 +++++++------ config/samples/bases/camel_v1alpha1_kameletbinding.yaml | 11 ++++++----- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/config/samples/bases/camel_v1_kamelet.yaml b/config/samples/bases/camel_v1_kamelet.yaml index 4e1871a53..3ed8539bc 100644 --- a/config/samples/bases/camel_v1_kamelet.yaml +++ b/config/samples/bases/camel_v1_kamelet.yaml @@ -15,10 +15,10 @@ # limitations under the License. # --------------------------------------------------------------------------- -apiVersion: camel.apache.org/v1alpha1 +apiVersion: camel.apache.org/v1 kind: Kamelet metadata: - name: example + name: example-source spec: definition: description: Produces periodic events with a custom payload @@ -37,10 +37,10 @@ spec: title: Example Timer template: from: + uri: timer:tick parameters: period: "#property:period" steps: - setBody: constant: "#property:message" - to: kamelet:sink - uri: timer:tick diff --git a/config/samples/bases/camel_v1_pipe.yaml b/config/samples/bases/camel_v1_pipe.yaml index da8949de6..767d4d079 100644 --- a/config/samples/bases/camel_v1_pipe.yaml +++ b/config/samples/bases/camel_v1_pipe.yaml @@ -18,17 +18,18 @@ apiVersion: camel.apache.org/v1 kind: Pipe metadata: - name: example + name: timer-to-log-example spec: source: ref: - apiVersion: camel.apache.org/v1alpha1 + apiVersion: camel.apache.org/v1 kind: Kamelet - name: example + name: timer-source properties: + period: 2000 message: Hello world sink: ref: - apiVersion: messaging.knative.dev/v1 - kind: InMemoryChannel - name: example + apiVersion: camel.apache.org/v1 + kind: Kamelet + name: log-sink diff --git a/config/samples/bases/camel_v1alpha1_kameletbinding.yaml b/config/samples/bases/camel_v1alpha1_kameletbinding.yaml index 2d1424bca..36864045a 100644 --- a/config/samples/bases/camel_v1alpha1_kameletbinding.yaml +++ b/config/samples/bases/camel_v1alpha1_kameletbinding.yaml @@ -18,17 +18,18 @@ apiVersion: camel.apache.org/v1alpha1 kind: KameletBinding metadata: - name: example + name: timer-to-log-example spec: source: ref: apiVersion: camel.apache.org/v1alpha1 kind: Kamelet - name: example + name: timer-source properties: + period: 2000 message: Hello world sink: ref: - apiVersion: messaging.knative.dev/v1 - kind: InMemoryChannel - name: example + apiVersion: camel.apache.org/v1alpha1 + kind: Kamelet + name: log-sink