Skip to content

Commit d2b6b0e

Browse files
authored
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>
1 parent be1eb29 commit d2b6b0e

File tree

11 files changed

+22
-22
lines changed

11 files changed

+22
-22
lines changed

docs/eventing/broker-trigger.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ emits an event on a configured schedule. For this we'll configure it to emit
198198
events once a minute, saying, yes, you guessed it `Hello World!`.
199199

200200
```yaml
201-
apiVersion: sources.knative.dev/v1alpha1
201+
apiVersion: sources.knative.dev/v1alpha2
202202
kind: PingSource
203203
metadata:
204204
name: test-ping-source
205205
spec:
206206
schedule: "*/1 * * * *"
207-
data: '{"message": "Hello world!"}'
207+
jsonData: '{"message": "Hello world!"}'
208208
sink:
209209
ref:
210210
# Deliver events to Broker.

docs/eventing/samples/ping-source/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ Use following command to create the event source from STDIN:
5757

5858
```shell
5959
cat <<EOF | kubectl create -f -
60-
apiVersion: sources.knative.dev/v1alpha1
60+
apiVersion: sources.knative.dev/v1alpha2
6161
kind: PingSource
6262
metadata:
6363
name: test-ping-source
6464
spec:
6565
schedule: "*/2 * * * *"
66-
data: '{"message": "Hello world!"}'
66+
jsonData: '{"message": "Hello world!"}'
6767
sink:
6868
ref:
6969
apiVersion: serving.knative.dev/v1

docs/eventing/samples/ping-source/ping-source.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
apiVersion: sources.knative.dev/v1alpha1
1+
apiVersion: sources.knative.dev/v1alpha2
22
kind: PingSource
33
metadata:
44
name: test-ping-source
55
spec:
66
schedule: "*/2 * * * *"
7-
data: '{"message": "Hello world!"}'
7+
jsonData: '{"message": "Hello world!"}'
88
sink:
99
ref:
1010
apiVersion: serving.knative.dev/v1

docs/eventing/samples/sequence/sequence-reply-to-event-display/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ This will create a PingSource which will send a CloudEvent with {"message":
148148
"Hello world!"} as the data payload every 2 minutes.
149149

150150
```yaml
151-
apiVersion: sources.knative.dev/v1alpha1
151+
apiVersion: sources.knative.dev/v1alpha2
152152
kind: PingSource
153153
metadata:
154154
name: ping-source
155155
spec:
156156
schedule: "*/2 * * * *"
157-
data: '{"message": "Hello world!"}'
157+
jsonData: '{"message": "Hello world!"}'
158158
sink:
159159
ref:
160160
apiVersion: flows.knative.dev/v1beta1

docs/eventing/samples/sequence/sequence-reply-to-event-display/ping-source.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
apiVersion: sources.knative.dev/v1alpha1
1+
apiVersion: sources.knative.dev/v1alpha2
22
kind: PingSource
33
metadata:
44
name: ping-source
55
spec:
66
schedule: "*/2 * * * *"
7-
data: '{"message": "Hello world!"}'
7+
jsonData: '{"message": "Hello world!"}'
88
sink:
99
ref:
1010
apiVersion: flows.knative.dev/v1beta1

docs/eventing/samples/sequence/sequence-reply-to-sequence/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ This will create a PingSource which will send a CloudEvent with `{"message":
229229
"Hello world!"}` as the data payload every 2 minutes.
230230

231231
```yaml
232-
apiVersion: sources.knative.dev/v1alpha1
232+
apiVersion: sources.knative.dev/v1alpha2
233233
kind: PingSource
234234
metadata:
235235
name: ping-source
236236
spec:
237237
schedule: "*/2 * * * *"
238-
data: '{"message": "Hello world!"}'
238+
jsonData: '{"message": "Hello world!"}'
239239
sink:
240240
ref:
241241
apiVersion: flows.knative.dev/v1beta1

docs/eventing/samples/sequence/sequence-reply-to-sequence/ping-source.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
apiVersion: sources.knative.dev/v1alpha1
1+
apiVersion: sources.knative.dev/v1alpha2
22
kind: PingSource
33
metadata:
44
name: ping-source
55
spec:
66
schedule: "*/2 * * * *"
7-
data: '{"message": "Hello world!"}'
7+
jsonData: '{"message": "Hello world!"}'
88
sink:
99
ref:
1010
apiVersion: flows.knative.dev/v1beta1

docs/eventing/samples/sequence/sequence-terminal/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ This will create a PingSource which will send a CloudEvent with `{"message":
121121
"Hello world!"}` as the data payload every 2 minutes.
122122

123123
```yaml
124-
apiVersion: sources.knative.dev/v1alpha1
124+
apiVersion: sources.knative.dev/v1alpha2
125125
kind: PingSource
126126
metadata:
127127
name: ping-source
128128
spec:
129129
schedule: "*/2 * * * *"
130-
data: '{"message": "Hello world!"}'
130+
jsonData: '{"message": "Hello world!"}'
131131
sink:
132132
ref:
133133
apiVersion: flows.knative.dev/v1beta1

docs/eventing/samples/sequence/sequence-terminal/ping-source.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
apiVersion: sources.knative.dev/v1alpha1
1+
apiVersion: sources.knative.dev/v1alpha2
22
kind: PingSource
33
metadata:
44
name: ping-source
55
spec:
66
schedule: "*/2 * * * *"
7-
data: '{"message": "Hello world!"}'
7+
jsonData: '{"message": "Hello world!"}'
88
sink:
99
ref:
1010
apiVersion: flows.knative.dev/v1beta1

docs/eventing/samples/sequence/sequence-with-broker-trigger/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ This will create a PingSource which will send a CloudEvent with {"message":
139139
"Hello world!"} as the data payload every 2 minutes.
140140

141141
```yaml
142-
apiVersion: sources.knative.dev/v1alpha1
142+
apiVersion: sources.knative.dev/v1alpha2
143143
kind: PingSource
144144
metadata:
145145
name: ping-source
146146
spec:
147147
schedule: "*/2 * * * *"
148-
data: '{"message": "Hello world!"}'
148+
jsonData: '{"message": "Hello world!"}'
149149
sink:
150150
ref:
151151
apiVersion: eventing.knative.dev/v1beta1

0 commit comments

Comments
 (0)