Skip to content

Commit 6ad3100

Browse files
gyliu513knative-prow-robot
authored andcommitted
Correct the file path for iot example. (knative#898)
1 parent 18025f8 commit 6ad3100

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

eventing/samples/iot-core/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export IOTCORE_TOPIC_DEVICE="iot-demo-device-pubsub-topic"
5454
1. Have [gcloud](https://cloud.google.com/sdk/gcloud/) installed and pointing
5555
at that project.
5656

57-
1. Enable the 'Cloud Pub/Sub API' on that project.
57+
1. Enable the `Cloud Pub/Sub API` on that project.
5858

5959
```shell
6060
gcloud services enable pubsub.googleapis.com
@@ -109,7 +109,7 @@ export IOTCORE_TOPIC_DEVICE="iot-demo-device-pubsub-topic"
109109
1. Create a `Channel`.
110110
111111
```shell
112-
sed "s/CHANNEL_NAME/$CHANNEL_NAME/" eventing/samples/iot-core/channel.yaml |
112+
sed "s/CHANNEL_NAME/$CHANNEL_NAME/" channel.yaml |
113113
kubectl -n default apply -f -
114114
```
115115
@@ -121,7 +121,7 @@ export IOTCORE_TOPIC_DEVICE="iot-demo-device-pubsub-topic"
121121
sed -e "s/MY_GCP_PROJECT/$IOTCORE_PROJECT/" \
122122
-e "s/TOPIC_NAME/$IOTCORE_TOPIC_DATA/" \
123123
-e "s/CHANNEL_NAME/$CHANNEL_NAME/" \
124-
eventing/samples/iot-core/gcp-pubsub-source.yaml |
124+
gcp-pubsub-source.yaml |
125125
kubectl apply -f -
126126
```
127127
@@ -133,8 +133,7 @@ Even though the `Source` isn't completely ready yet, we can setup the
133133
1. Deploy `subscription.yaml`.
134134

135135
```shell
136-
sed "s/CHANNEL_NAME/$CHANNEL_NAME/" \
137-
eventing/samples/iot-core/subscription.yaml |
136+
sed "s/CHANNEL_NAME/$CHANNEL_NAME/" subscription.yaml |
138137
ko apply -f -
139138
```
140139

0 commit comments

Comments
 (0)