Update eventing/samples/kafka/binding/README.md (#3069)

- Drop namespace reference in k8s Job resource as none of the other resources specify a namespace.
- Add verification for job having run

Signed-off-by: Sameer Vohra <vsameer@vmware.com>
This commit is contained in:
Sameer Vohra 2020-12-03 16:21:09 -06:00 committed by GitHub
parent d8c1cd1aa9
commit 256f6cdf10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -154,7 +154,6 @@ In this case, we will bind any `Job` with the labels `kafka.topic: "logs"`.
labels:
kafka.topic: "logs"
name: kafka-publisher-job
namespace: test-alpha
spec:
backoffLimit: 1
completions: 1
@ -178,6 +177,12 @@ In this case, we will bind any `Job` with the labels `kafka.topic: "logs"`.
value: '{"msg":"This is a test!"}'
name: kafka-publisher
```
1. Check that the Job has run successfully.
```
$ kubectl get jobs
NAME COMPLETIONS DURATION AGE
kafka-publisher-job 1/1 7s 7s
```
### Verify