mirror of https://github.com/knative/docs.git
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:
parent
be1eb2998c
commit
d2b6b0ec72
|
@ -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!`.
|
||||
|
||||
```yaml
|
||||
apiVersion: sources.knative.dev/v1alpha1
|
||||
apiVersion: sources.knative.dev/v1alpha2
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: test-ping-source
|
||||
spec:
|
||||
schedule: "*/1 * * * *"
|
||||
data: '{"message": "Hello world!"}'
|
||||
jsonData: '{"message": "Hello world!"}'
|
||||
sink:
|
||||
ref:
|
||||
# Deliver events to Broker.
|
||||
|
|
|
@ -57,13 +57,13 @@ Use following command to create the event source from STDIN:
|
|||
|
||||
```shell
|
||||
cat <<EOF | kubectl create -f -
|
||||
apiVersion: sources.knative.dev/v1alpha1
|
||||
apiVersion: sources.knative.dev/v1alpha2
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: test-ping-source
|
||||
spec:
|
||||
schedule: "*/2 * * * *"
|
||||
data: '{"message": "Hello world!"}'
|
||||
jsonData: '{"message": "Hello world!"}'
|
||||
sink:
|
||||
ref:
|
||||
apiVersion: serving.knative.dev/v1
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
apiVersion: sources.knative.dev/v1alpha1
|
||||
apiVersion: sources.knative.dev/v1alpha2
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: test-ping-source
|
||||
spec:
|
||||
schedule: "*/2 * * * *"
|
||||
data: '{"message": "Hello world!"}'
|
||||
jsonData: '{"message": "Hello world!"}'
|
||||
sink:
|
||||
ref:
|
||||
apiVersion: serving.knative.dev/v1
|
||||
|
|
|
@ -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.
|
||||
|
||||
```yaml
|
||||
apiVersion: sources.knative.dev/v1alpha1
|
||||
apiVersion: sources.knative.dev/v1alpha2
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
spec:
|
||||
schedule: "*/2 * * * *"
|
||||
data: '{"message": "Hello world!"}'
|
||||
jsonData: '{"message": "Hello world!"}'
|
||||
sink:
|
||||
ref:
|
||||
apiVersion: flows.knative.dev/v1beta1
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
apiVersion: sources.knative.dev/v1alpha1
|
||||
apiVersion: sources.knative.dev/v1alpha2
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
spec:
|
||||
schedule: "*/2 * * * *"
|
||||
data: '{"message": "Hello world!"}'
|
||||
jsonData: '{"message": "Hello world!"}'
|
||||
sink:
|
||||
ref:
|
||||
apiVersion: flows.knative.dev/v1beta1
|
||||
|
|
|
@ -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.
|
||||
|
||||
```yaml
|
||||
apiVersion: sources.knative.dev/v1alpha1
|
||||
apiVersion: sources.knative.dev/v1alpha2
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
spec:
|
||||
schedule: "*/2 * * * *"
|
||||
data: '{"message": "Hello world!"}'
|
||||
jsonData: '{"message": "Hello world!"}'
|
||||
sink:
|
||||
ref:
|
||||
apiVersion: flows.knative.dev/v1beta1
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
apiVersion: sources.knative.dev/v1alpha1
|
||||
apiVersion: sources.knative.dev/v1alpha2
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
spec:
|
||||
schedule: "*/2 * * * *"
|
||||
data: '{"message": "Hello world!"}'
|
||||
jsonData: '{"message": "Hello world!"}'
|
||||
sink:
|
||||
ref:
|
||||
apiVersion: flows.knative.dev/v1beta1
|
||||
|
|
|
@ -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.
|
||||
|
||||
```yaml
|
||||
apiVersion: sources.knative.dev/v1alpha1
|
||||
apiVersion: sources.knative.dev/v1alpha2
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
spec:
|
||||
schedule: "*/2 * * * *"
|
||||
data: '{"message": "Hello world!"}'
|
||||
jsonData: '{"message": "Hello world!"}'
|
||||
sink:
|
||||
ref:
|
||||
apiVersion: flows.knative.dev/v1beta1
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
apiVersion: sources.knative.dev/v1alpha1
|
||||
apiVersion: sources.knative.dev/v1alpha2
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
spec:
|
||||
schedule: "*/2 * * * *"
|
||||
data: '{"message": "Hello world!"}'
|
||||
jsonData: '{"message": "Hello world!"}'
|
||||
sink:
|
||||
ref:
|
||||
apiVersion: flows.knative.dev/v1beta1
|
||||
|
|
|
@ -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.
|
||||
|
||||
```yaml
|
||||
apiVersion: sources.knative.dev/v1alpha1
|
||||
apiVersion: sources.knative.dev/v1alpha2
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
spec:
|
||||
schedule: "*/2 * * * *"
|
||||
data: '{"message": "Hello world!"}'
|
||||
jsonData: '{"message": "Hello world!"}'
|
||||
sink:
|
||||
ref:
|
||||
apiVersion: eventing.knative.dev/v1beta1
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
apiVersion: sources.knative.dev/v1alpha1
|
||||
apiVersion: sources.knative.dev/v1alpha2
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
spec:
|
||||
schedule: "*/2 * * * *"
|
||||
data: '{"message": "Hello world!"}'
|
||||
jsonData: '{"message": "Hello world!"}'
|
||||
sink:
|
||||
ref:
|
||||
apiVersion: eventing.knative.dev/v1beta1
|
||||
|
|
Loading…
Reference in New Issue