Skip to content

Commit e9f98a7

Browse files
Update event source procedures and correct assembly path for ping source modules in Serverless
1 parent 3d3cd79 commit e9f98a7

File tree

4 files changed

+28
-16
lines changed

4 files changed

+28
-16
lines changed

modules/odc-creating-apiserversource.adoc

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,25 @@
77

88
.Procedure
99

10-
. Navigate to the **Add** page and select **Event Source**.
11-
. In the **Event Sources** page, select **ApiServerSource** in the **Type** section.
12-
. Configure the **ApiServerSource** settings:
13-
.. Enter `v1` as the **APIVERSION**, and `Event` as the **KIND**.
14-
// .. Select **Resource** as the **Mode**. **Mode** is the mode that the receive adapter controller runs in. `Ref` sends only the reference to the resource. `Resource` sends the full resource.
10+
. In the *Developer* perspective, navigate to *+Add* → *Event Source*. The *Event Sources* page is displayed.
11+
. Optional: If you have multiple providers for your event sources, select the required provider from the *Providers* list to filter the available event sources from the provider.
12+
. Select *ApiServerSource* and then click *Create Event Source*. The *Create Event Source* page is displayed.
13+
. Configure the *ApiServerSource* settings by using the *Form view* or *YAML view*:
14+
+
15+
[NOTE]
16+
====
17+
You can switch between the *Form view* and *YAML view*. The data is persisted when switching between the views.
18+
====
19+
.. Enter `v1` as the *APIVERSION* and `Event` as the *KIND*.
20+
// .. Select *Resource* as the *Mode*. *Mode* is the mode that the receive adapter controller runs in. `Ref` sends only the reference to the resource. `Resource` sends the full resource.
1521
// TODO: clarify what this is used for. Out of scope for this PR since not required.
16-
.. Select the **Service Account Name** for the service account that you created.
17-
.. Select the **Sink** for the event source. A **Sink** can be either a **Resource**, such as a channel, broker, or service, or a **URI**.
18-
. Click **Create**.
22+
.. Select the *Service Account Name* for the service account that you created.
23+
.. Select the *Sink* for the event source. A *Sink* can be either a *Resource*, such as a channel, broker, or service, or a *URI*.
24+
. Click *Create*.
1925

2026
.Verification steps
2127

22-
* After you have created the ApiServerSource, you will see it connected to the service it is sinked to in the **Topology** view.
28+
* After you have created the ApiServerSource, you will see it connected to the service it is sinked to in the *Topology* view.
2329
+
2430
image::toplogy-odc-apiserver.png[ApiServerSource Topology view]
2531

@@ -32,7 +38,7 @@ If a URI sink is used, modify the URI by right-clicking on *URI sink* -> *Edit U
3238

3339
.Procedure
3440

35-
. Navigate to the **Topology** view.
36-
. Right-click the ApiServerSource and select **Delete ApiServerSource**.
41+
. Navigate to the *Topology* view.
42+
. Right-click the ApiServerSource and select *Delete ApiServerSource*.
3743
+
3844
image::delete-apiserversource-odc.png[Delete the ApiServerSource]

modules/serverless-pingsource-kn.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * serverless/event_workflows/serverless-pingsource.adoc
3+
// * serverless/event_sources/serverless-pingsource.adoc
44

55
[id="serverless-pingsource-kn_{context}"]
66
= Using a PingSource with the `kn` CLI

modules/serverless-pingsource-odc.adoc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * serverless/event_workflows/serverless-pingsource.adoc
3+
// * serverless/event_sources/serverless-pingsource.adoc
44

55
[id="serverless-pingsource-odc_{context}"]
66
= Creating a PingSource using the Developer Perspective
@@ -39,8 +39,14 @@ spec:
3939
.. Click *Create*.
4040

4141
. Create a PingSource in the same namespace as the service created in the previous step, or any other sink that you want to send events to.
42-
.. In the *Developer* perspective, navigate to *+Add* -> *Event Source*.
43-
.. Select *Ping Source*.
42+
.. In the *Developer* perspective, navigate to *+Add* -> *Event Source*. The *Event Sources* page is displayed.
43+
.. Optional: If you have multiple providers for your event sources, select the required provider from the *Providers* list to filter the available event sources from the provider.
44+
.. Select *Ping Source* and then click *Create Event Source*. The *Create Event Source* page is displayed.
45+
+
46+
[NOTE]
47+
====
48+
You can configure the *PingSource* settings by using the *Form view* or *YAML view* and can switch between the views. The data is persisted when switching between the views.
49+
====
4450
.. Enter a value for *Schedule*. In this example, the value is `*/2 * * * *`, which creates a PingSource that sends a message every two minutes.
4551
.. Optional: You can enter a value for *Data*, which is the message payload.
4652
.. Select a *Sink*. This can be either a *Resource* or a *URI*. In this example, the `event-display` service created in the previous step is used as the *Resource* sink.

modules/serverless-pingsource-yaml.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * serverless/event_workflows/serverless-pingsource.adoc
3+
// * serverless/event_sources/serverless-pingsource.adoc
44

55
[id="serverless-pingsource-yaml_{context}"]
66
= Using a PingSource with YAML

0 commit comments

Comments
 (0)