From a3fdf09cf923aa3fc8dac4dc38ed81ef549f35b9 Mon Sep 17 00:00:00 2001 From: Amaan Q Date: Wed, 21 Sep 2022 10:14:10 -0700 Subject: [PATCH] updated ping source with kn base64 example (#5219) * updated ping source with kn base64 example * formatting fixes --- docs/eventing/sources/ping-source/README.md | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/eventing/sources/ping-source/README.md b/docs/eventing/sources/ping-source/README.md index 64634cd02..230215498 100644 --- a/docs/eventing/sources/ping-source/README.md +++ b/docs/eventing/sources/ping-source/README.md @@ -120,6 +120,28 @@ during the verification step in this procedure. For a list of available options, see the [Knative client documentation](https://github.com/knative/client/blob/main/docs/cmd/kn_source_ping_create.md). + === "kn: binary data" + + - To create a PingSource that sends binary data, run the command: + + ```bash + kn source ping create \ + --namespace \ + --schedule "" \ + --data '' \ + --encoding 'base64' \ + --sink + ``` + Where: + + - `` is the name of the PingSource that you want to create, for example, `test-ping-source`. + - `` is the name of the namespace that you created in step 1 above. + - `` is a cron expression for the schedule for the PingSource to send events, for example, `*/1 * * * *` sends an event every minute. + - `` is the base64 encoded binary data that you want to send, for example, `ZGF0YQ==`. + - `` is the name of your sink, for example, `http://event-display.pingsource-example.svc.cluster.local`. + + For a list of available options, see the [Knative client documentation](https://github.com/knative/client/blob/main/docs/cmd/kn_source_ping_create.md). + === "YAML" - To create a PingSource that sends data that can be represented as plain text,