Create source_camel_k.yaml in samples directory (#1608)

corrects broken link
This commit is contained in:
Joan Edwards 2019-07-24 19:57:38 +01:00 committed by Knative Prow Robot
parent 765451d484
commit aa9a00e420
1 changed files with 24 additions and 0 deletions

View File

@ -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