@@ -11,13 +11,13 @@ Creating Knative resources by using YAML files uses a declarative API, which ena
11
11
.Example `PingSource` object
12
12
[source,yaml]
13
13
----
14
- apiVersion: sources.knative.dev/v1alpha2
14
+ apiVersion: sources.knative.dev/v1
15
15
kind: PingSource
16
16
metadata:
17
17
name: test-ping-source
18
18
spec:
19
19
schedule: "*/2 * * * *" <1>
20
- jsonData : '{"message": "Hello world!"}' <2>
20
+ data : '{"message": "Hello world!"}' <2>
21
21
sink: <3>
22
22
ref:
23
23
apiVersion: serving.knative.dev/v1
@@ -67,13 +67,13 @@ $ oc apply -f <filename>
67
67
+
68
68
[source,yaml]
69
69
----
70
- apiVersion: sources.knative.dev/v1alpha2
70
+ apiVersion: sources.knative.dev/v1
71
71
kind: PingSource
72
72
metadata:
73
73
name: test-ping-source
74
74
spec:
75
75
schedule: "*/2 * * * *"
76
- jsonData : '{"message": "Hello world!"}'
76
+ data : '{"message": "Hello world!"}'
77
77
sink:
78
78
ref:
79
79
apiVersion: serving.knative.dev/v1
@@ -97,7 +97,7 @@ $ oc get pingsource.sources.knative.dev <ping_source_name> -oyaml
97
97
.Example output
98
98
[source,terminal]
99
99
----
100
- apiVersion: sources.knative.dev/v1alpha2
100
+ apiVersion: sources.knative.dev/v1
101
101
kind: PingSource
102
102
metadata:
103
103
annotations:
@@ -108,10 +108,10 @@ metadata:
108
108
name: test-ping-source
109
109
namespace: default
110
110
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
112
112
uid: 3d80d50b-f8c7-4c1b-99f7-3ec00e0a8164
113
113
spec:
114
- jsonData : '{ value: "hello" }'
114
+ data : '{ value: "hello" }'
115
115
schedule: '*/2 * * * *'
116
116
sink:
117
117
ref:
0 commit comments