From aa9a00e42056c5ee479370a50e7bd6b618ec64cf Mon Sep 17 00:00:00 2001 From: Joan Edwards <42442393+joaedwar@users.noreply.github.com> Date: Wed, 24 Jul 2019 19:57:38 +0100 Subject: [PATCH] Create source_camel_k.yaml in samples directory (#1608) corrects broken link --- .../apache-camel-source/source_camel_k.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/eventing/samples/apache-camel-source/source_camel_k.yaml diff --git a/docs/eventing/samples/apache-camel-source/source_camel_k.yaml b/docs/eventing/samples/apache-camel-source/source_camel_k.yaml new file mode 100644 index 000000000..13d0401b8 --- /dev/null +++ b/docs/eventing/samples/apache-camel-source/source_camel_k.yaml @@ -0,0 +1,24 @@ +# Apache Camel K Source +# +# Camel K documentation: https://github.com/apache/camel-k +# +# +apiVersion: sources.eventing.knative.dev/v1alpha1 +kind: CamelSource +metadata: + name: camel-k-source +spec: + source: + integration: + sources: + - name: file.groovy + content: + from("timer:tick?period=5s") + .log("Fetching quote of the day") + .to("https4://gist.githubusercontent.com/nicolaferraro/e3c72ace3c751f9f88273896611ce5fe/raw/3b6f54060bacb56b6719b7386a4645cb59ad6cc1/quote.json") + .setHeader("Content-Type").constant("application/json") + .to("knative:endpoint/sink?cloudEventsType=org.apache.camel.quote") + sink: + apiVersion: eventing.knative.dev/v1alpha1 + kind: Channel + name: camel-test