Skip to content

Commit fa0141a

Browse files
committed
Fix Typos and add universal KSVC_HOST in call.sh
1 parent e60c1fb commit fa0141a

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

advanced/camel-k/get-started/timed-greeter-kamelet.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,6 @@ spec:
4242
constant: "{{contentType}}"
4343
- transform:
4444
simple: "${body.toUpperCase()}"
45+
- log:
46+
message: "Sending Body: ${body}"
4547
- to: "kamelet:sink"

bin/call.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ else
1818
fi
1919

2020
# HOST_HEADER="Host:$KSVC_NAME.$CURR_NS.example.com"
21-
KSVC_HOST="$KSVC_NAME.$CURR_NS.$(minikube -p knativetutorial ip).nip.io"
21+
#KSVC_HOST="$KSVC_NAME.$CURR_NS.$(minikube -p knativetutorial ip).nip.io"
22+
KSVC_HOST="$(kubectl get ksvc $KSVC_NAME -o jsonpath='{.status.url}')"
2223

2324
if [ $# -le 1 ]
2425
then

documentation/modules/ROOT/pages/_partials/camelk-nav.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
* xref:camelk:camel-k-eventing.adoc[Camel K with Knative Eventing]
88
** xref:camelk:camel-k-eventing.adoc#deploy-camel-k-source[Install the kn kamelet source plugin]
99
** xref:camelk:camel-k-eventing.adoc#logging-ce-messages[View CloudEvents Messages]
10-
** xref:camelk:camel-k-eventing.adoc#camel-k-es-sink[Kamlet as source for a Knative Eventing Sink]
10+
** xref:camelk:camel-k-eventing.adoc#camel-k-es-sink[Kamelet as source for a Knative Eventing Sink]
1111
** xref:camelk:camel-k-eventing.adoc#camelk-eventing-cleanup[Cleanup]

documentation/modules/camelk/pages/camel-k-eventing.adoc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ event-display http://event-display.knativetutorial.example.com event-display
180180

181181

182182
[[camel-k-es-sink]]
183-
== Custom Kamlet as source for a Knative Eventing Sink
183+
== Custom Kamelet as source for a Knative Eventing Sink
184184

185185
Knative Eventing semantics allows you to link the Event Source to Event Sink using the **sink** block of the Knative Eventing source specification.
186186

@@ -311,17 +311,14 @@ To find out the URI of `event-display` please run the following command:
311311
kn service describe event-display -o url -n {tutorial-namespace}
312312
----
313313

314-
Copy and paste somewhere the value of the URL as you will use it to customize the KameletBinding definition:
314+
Copy the url that the previous command returned and run the following command. It will open an editor in which you can change the definition of the KameletBinding. *Replace the sink uri with the value you just copied and save the file*. Once you do that, Kubernetes will create an object based on the saved definition.
315315

316316
[.console-input]
317317
[source,bash,subs="+quotes,+attributes,+macros"]
318318
----
319319
kubectl create -f get-started/timed-greeter-binding.yaml --edit -o yaml -n {tutorial-namespace}
320320
----
321321

322-
The previous command let's you edit the definition of the KameletBinding with your URL and once you save it,
323-
Kubernetes will create an object based on it.
324-
325322
You can validate the state of your KameletBinding using:
326323

327324
[.console-input]

0 commit comments

Comments
 (0)