mirror of https://github.com/knative/docs.git
parent
7bc53589d4
commit
a97d895cbc
|
@ -1,4 +1,4 @@
|
|||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: test-ping-source-binary
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: test-ping-source
|
||||
|
|
|
@ -143,7 +143,7 @@ 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/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
|
|
|
@ -223,7 +223,7 @@ 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/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
|
|
|
@ -117,7 +117,7 @@ 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/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
|
|
|
@ -146,7 +146,7 @@ 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/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
|
|
|
@ -152,7 +152,7 @@ This will create a PingSource which will send a CloudEvent with
|
|||
`{"message": "Even or odd?"}` as the data payload every minute.
|
||||
|
||||
```yaml
|
||||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source
|
||||
|
|
|
@ -135,7 +135,7 @@ This will create a PingSource which will send a CloudEvent with
|
|||
`{"message": "Even or odd?"}` as the data payload every minute.
|
||||
|
||||
```yaml
|
||||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: me-ping-source
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: me-ping-source
|
||||
|
|
|
@ -28,7 +28,7 @@ which means there's a tight coupling between the producer and consumer.
|
|||
|
||||
```
|
||||
cat <<EOF | kubectl create -f -
|
||||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: test-ping-source
|
||||
|
@ -63,7 +63,7 @@ Let us create the second producer:
|
|||
|
||||
```
|
||||
cat <<EOF | kubectl create -f -
|
||||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: test-ping-source2
|
||||
|
|
|
@ -88,7 +88,7 @@ there’s no longer a tight coupling between the producer and consumer.
|
|||
|
||||
```
|
||||
cat <<EOF | kubectl create -f -
|
||||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: test-ping-source-channel
|
||||
|
|
|
@ -75,7 +75,7 @@ Finally, create the producer to create the event:
|
|||
|
||||
```
|
||||
cat <<EOF | kubectl create -f -
|
||||
apiVersion: sources.knative.dev/v1beta2
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: PingSource
|
||||
metadata:
|
||||
name: ping-source-sequence
|
||||
|
|
Loading…
Reference in New Issue