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!`.
|
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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue