From d075eabfe68f1ae3a27e14e13f207903aa497516 Mon Sep 17 00:00:00 2001 From: Michael Petersen Date: Tue, 31 Mar 2020 09:21:13 -0700 Subject: [PATCH 1/2] Added clone of docs to steps and updated paths --- docs/eventing/samples/kafka/source/README.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/eventing/samples/kafka/source/README.md b/docs/eventing/samples/kafka/source/README.md index 4cbf34e52d8..70c1de73d4c 100644 --- a/docs/eventing/samples/kafka/source/README.md +++ b/docs/eventing/samples/kafka/source/README.md @@ -63,7 +63,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over 2. Deploy the `KafkaTopic` ```shell - $ kubectl apply -f kafka/source/samples/strimzi-topic.yaml + $ kubectl apply -f strimzi-topic.yaml kafkatopic.kafka.strimzi.io/knative-demo-topic created ``` @@ -77,7 +77,14 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over ### Create the Event Display service -1. Build the Event Display Service (`even-display.yaml`) +1. Download a copy of the code: + + ```shell + git clone -b "{{< branch >}}" https://github.com/knative/docs knative-docs + cd knative-docs/docs/eventing/samples/kafka/source + ``` + +2. Build the Event Display Service (`even-display.yaml`) ```yaml apiVersion: serving.knative.dev/v1 @@ -97,7 +104,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over 1. Deploy the Event Display Service ``` - $ kubectl apply --filename source/samples/event-display.yaml + $ kubectl apply --filename event-display.yaml ... service.serving.knative.dev/event-display created ``` @@ -133,7 +140,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over 1. Deploy the event source. ``` - $ kubectl apply -f kafka/source/samples/event-source.yaml + $ kubectl apply -f event-source.yaml ... kafkasource.sources.eventing.knative.dev/kafka-source created ``` @@ -218,7 +225,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over 4. (Optional) Remove the Apache Kafka Topic ```shell - $ kubectl delete -f kafka/source/samples/kafka-topic.yaml + $ kubectl delete -f kafka-topic.yaml kafkatopic.kafka.strimzi.io "knative-demo-topic" deleted ``` From 635f9a9837a5864d54b810a6617d62eec0569afc Mon Sep 17 00:00:00 2001 From: Michael Petersen Date: Sun, 12 Apr 2020 10:15:19 -0700 Subject: [PATCH 2/2] Fixed event spelling --- docs/eventing/samples/kafka/source/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/eventing/samples/kafka/source/README.md b/docs/eventing/samples/kafka/source/README.md index 70c1de73d4c..f33ce46ef36 100644 --- a/docs/eventing/samples/kafka/source/README.md +++ b/docs/eventing/samples/kafka/source/README.md @@ -84,7 +84,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over cd knative-docs/docs/eventing/samples/kafka/source ``` -2. Build the Event Display Service (`even-display.yaml`) +2. Build the Event Display Service (`event-display.yaml`) ```yaml apiVersion: serving.knative.dev/v1