Skip to content

Commit 00b6ef7

Browse files
committed
[SRVCOM-1874] Update pingsource API version and data spec
fix last ref
1 parent f29cc8b commit 00b6ef7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/serverless-pingsource-yaml.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Creating Knative resources by using YAML files uses a declarative API, which ena
1111
.Example `PingSource` object
1212
[source,yaml]
1313
----
14-
apiVersion: sources.knative.dev/v1alpha2
14+
apiVersion: sources.knative.dev/v1
1515
kind: PingSource
1616
metadata:
1717
name: test-ping-source
1818
spec:
1919
schedule: "*/2 * * * *" <1>
20-
jsonData: '{"message": "Hello world!"}' <2>
20+
data: '{"message": "Hello world!"}' <2>
2121
sink: <3>
2222
ref:
2323
apiVersion: serving.knative.dev/v1
@@ -67,13 +67,13 @@ $ oc apply -f <filename>
6767
+
6868
[source,yaml]
6969
----
70-
apiVersion: sources.knative.dev/v1alpha2
70+
apiVersion: sources.knative.dev/v1
7171
kind: PingSource
7272
metadata:
7373
name: test-ping-source
7474
spec:
7575
schedule: "*/2 * * * *"
76-
jsonData: '{"message": "Hello world!"}'
76+
data: '{"message": "Hello world!"}'
7777
sink:
7878
ref:
7979
apiVersion: serving.knative.dev/v1
@@ -97,7 +97,7 @@ $ oc get pingsource.sources.knative.dev <ping_source_name> -oyaml
9797
.Example output
9898
[source,terminal]
9999
----
100-
apiVersion: sources.knative.dev/v1alpha2
100+
apiVersion: sources.knative.dev/v1
101101
kind: PingSource
102102
metadata:
103103
annotations:
@@ -108,10 +108,10 @@ metadata:
108108
name: test-ping-source
109109
namespace: default
110110
resourceVersion: "55257"
111-
selfLink: /apis/sources.knative.dev/v1alpha2/namespaces/default/pingsources/test-ping-source
111+
selfLink: /apis/sources.knative.dev/v1/namespaces/default/pingsources/test-ping-source
112112
uid: 3d80d50b-f8c7-4c1b-99f7-3ec00e0a8164
113113
spec:
114-
jsonData: '{ value: "hello" }'
114+
data: '{ value: "hello" }'
115115
schedule: '*/2 * * * *'
116116
sink:
117117
ref:

0 commit comments

Comments
 (0)