Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/eventing/broker-trigger.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions docs/eventing/samples/ping-source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/eventing/samples/ping-source/ping-source.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/eventing/samples/sequence/sequence-terminal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down