You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/odc-creating-apiserversource.adoc
+17-11Lines changed: 17 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,19 +7,25 @@
7
7
8
8
.Procedure
9
9
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.
15
21
// 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*.
19
25
20
26
.Verification steps
21
27
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.
= Creating a PingSource using the Developer Perspective
@@ -39,8 +39,14 @@ spec:
39
39
.. Click *Create*.
40
40
41
41
. 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
+
====
44
50
.. Enter a value for *Schedule*. In this example, the value is `*/2 * * * *`, which creates a PingSource that sends a message every two minutes.
45
51
.. Optional: You can enter a value for *Data*, which is the message payload.
46
52
.. 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.
0 commit comments