Updates on the PingSource (#2274)

* Updates on the PingSource

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Updates on the PingSource

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
This commit is contained in:
Matthias Wessendorf 2020-03-10 23:58:29 +01:00 committed by GitHub
parent be1eb2998c
commit d2b6b0ec72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 22 additions and 22 deletions

View File

@ -198,13 +198,13 @@ emits an event on a configured schedule. For this we'll configure it to emit
events once a minute, saying, yes, you guessed it `Hello World!`. events once a minute, saying, yes, you guessed it `Hello World!`.
```yaml ```yaml
apiVersion: sources.knative.dev/v1alpha1 apiVersion: sources.knative.dev/v1alpha2
kind: PingSource kind: PingSource
metadata: metadata:
name: test-ping-source name: test-ping-source
spec: spec:
schedule: "*/1 * * * *" schedule: "*/1 * * * *"
data: '{"message": "Hello world!"}' jsonData: '{"message": "Hello world!"}'
sink: sink:
ref: ref:
# Deliver events to Broker. # Deliver events to Broker.

View File

@ -57,13 +57,13 @@ Use following command to create the event source from STDIN:
```shell ```shell
cat <<EOF | kubectl create -f - cat <<EOF | kubectl create -f -
apiVersion: sources.knative.dev/v1alpha1 apiVersion: sources.knative.dev/v1alpha2
kind: PingSource kind: PingSource
metadata: metadata:
name: test-ping-source name: test-ping-source
spec: spec:
schedule: "*/2 * * * *" schedule: "*/2 * * * *"
data: '{"message": "Hello world!"}' jsonData: '{"message": "Hello world!"}'
sink: sink:
ref: ref:
apiVersion: serving.knative.dev/v1 apiVersion: serving.knative.dev/v1

View File

@ -1,10 +1,10 @@
apiVersion: sources.knative.dev/v1alpha1 apiVersion: sources.knative.dev/v1alpha2
kind: PingSource kind: PingSource
metadata: metadata:
name: test-ping-source name: test-ping-source
spec: spec:
schedule: "*/2 * * * *" schedule: "*/2 * * * *"
data: '{"message": "Hello world!"}' jsonData: '{"message": "Hello world!"}'
sink: sink:
ref: ref:
apiVersion: serving.knative.dev/v1 apiVersion: serving.knative.dev/v1

View File

@ -148,13 +148,13 @@ This will create a PingSource which will send a CloudEvent with {"message":
"Hello world!"} as the data payload every 2 minutes. "Hello world!"} as the data payload every 2 minutes.
```yaml ```yaml
apiVersion: sources.knative.dev/v1alpha1 apiVersion: sources.knative.dev/v1alpha2
kind: PingSource kind: PingSource
metadata: metadata:
name: ping-source name: ping-source
spec: spec:
schedule: "*/2 * * * *" schedule: "*/2 * * * *"
data: '{"message": "Hello world!"}' jsonData: '{"message": "Hello world!"}'
sink: sink:
ref: ref:
apiVersion: flows.knative.dev/v1beta1 apiVersion: flows.knative.dev/v1beta1

View File

@ -1,10 +1,10 @@
apiVersion: sources.knative.dev/v1alpha1 apiVersion: sources.knative.dev/v1alpha2
kind: PingSource kind: PingSource
metadata: metadata:
name: ping-source name: ping-source
spec: spec:
schedule: "*/2 * * * *" schedule: "*/2 * * * *"
data: '{"message": "Hello world!"}' jsonData: '{"message": "Hello world!"}'
sink: sink:
ref: ref:
apiVersion: flows.knative.dev/v1beta1 apiVersion: flows.knative.dev/v1beta1

View File

@ -229,13 +229,13 @@ This will create a PingSource which will send a CloudEvent with `{"message":
"Hello world!"}` as the data payload every 2 minutes. "Hello world!"}` as the data payload every 2 minutes.
```yaml ```yaml
apiVersion: sources.knative.dev/v1alpha1 apiVersion: sources.knative.dev/v1alpha2
kind: PingSource kind: PingSource
metadata: metadata:
name: ping-source name: ping-source
spec: spec:
schedule: "*/2 * * * *" schedule: "*/2 * * * *"
data: '{"message": "Hello world!"}' jsonData: '{"message": "Hello world!"}'
sink: sink:
ref: ref:
apiVersion: flows.knative.dev/v1beta1 apiVersion: flows.knative.dev/v1beta1

View File

@ -1,10 +1,10 @@
apiVersion: sources.knative.dev/v1alpha1 apiVersion: sources.knative.dev/v1alpha2
kind: PingSource kind: PingSource
metadata: metadata:
name: ping-source name: ping-source
spec: spec:
schedule: "*/2 * * * *" schedule: "*/2 * * * *"
data: '{"message": "Hello world!"}' jsonData: '{"message": "Hello world!"}'
sink: sink:
ref: ref:
apiVersion: flows.knative.dev/v1beta1 apiVersion: flows.knative.dev/v1beta1

View File

@ -121,13 +121,13 @@ This will create a PingSource which will send a CloudEvent with `{"message":
"Hello world!"}` as the data payload every 2 minutes. "Hello world!"}` as the data payload every 2 minutes.
```yaml ```yaml
apiVersion: sources.knative.dev/v1alpha1 apiVersion: sources.knative.dev/v1alpha2
kind: PingSource kind: PingSource
metadata: metadata:
name: ping-source name: ping-source
spec: spec:
schedule: "*/2 * * * *" schedule: "*/2 * * * *"
data: '{"message": "Hello world!"}' jsonData: '{"message": "Hello world!"}'
sink: sink:
ref: ref:
apiVersion: flows.knative.dev/v1beta1 apiVersion: flows.knative.dev/v1beta1

View File

@ -1,10 +1,10 @@
apiVersion: sources.knative.dev/v1alpha1 apiVersion: sources.knative.dev/v1alpha2
kind: PingSource kind: PingSource
metadata: metadata:
name: ping-source name: ping-source
spec: spec:
schedule: "*/2 * * * *" schedule: "*/2 * * * *"
data: '{"message": "Hello world!"}' jsonData: '{"message": "Hello world!"}'
sink: sink:
ref: ref:
apiVersion: flows.knative.dev/v1beta1 apiVersion: flows.knative.dev/v1beta1

View File

@ -139,13 +139,13 @@ This will create a PingSource which will send a CloudEvent with {"message":
"Hello world!"} as the data payload every 2 minutes. "Hello world!"} as the data payload every 2 minutes.
```yaml ```yaml
apiVersion: sources.knative.dev/v1alpha1 apiVersion: sources.knative.dev/v1alpha2
kind: PingSource kind: PingSource
metadata: metadata:
name: ping-source name: ping-source
spec: spec:
schedule: "*/2 * * * *" schedule: "*/2 * * * *"
data: '{"message": "Hello world!"}' jsonData: '{"message": "Hello world!"}'
sink: sink:
ref: ref:
apiVersion: eventing.knative.dev/v1beta1 apiVersion: eventing.knative.dev/v1beta1

View File

@ -1,10 +1,10 @@
apiVersion: sources.knative.dev/v1alpha1 apiVersion: sources.knative.dev/v1alpha2
kind: PingSource kind: PingSource
metadata: metadata:
name: ping-source name: ping-source
spec: spec:
schedule: "*/2 * * * *" schedule: "*/2 * * * *"
data: '{"message": "Hello world!"}' jsonData: '{"message": "Hello world!"}'
sink: sink:
ref: ref:
apiVersion: eventing.knative.dev/v1beta1 apiVersion: eventing.knative.dev/v1beta1