1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 06:46:26 +01:00
Files
openshift-docs/modules/odc-creating-apiserversource.adoc
2020-09-30 18:43:42 +00:00

39 lines
1.5 KiB
Plaintext

// Module included in the following assemblies:
//
// * serverless/event_sources/serverless-apiserversource.adoc
[id="odc-creating-apiserversource_{context}"]
= Creating an ApiServerSource event source using the Developer perspective
.Procedure
. Navigate to the **Add** page and select **Event Source**.
. In the **Event Sources** page, select **ApiServerSource** in the **Type** section.
. Configure the **ApiServerSource** settings:
.. Enter `v1` as the **APIVERSION**, and `Event` as the **KIND**.
// .. 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.
// TODO: clarify what this is used for. Out of scope for this PR since not required.
.. Select the **Service Account Name** for the service account that you created.
.. Select the **Sink** for the event source. A **Sink** can be either a **Resource**, such as a channel, broker, or service, or a **URI**.
. Click **Create**.
.Verification steps
* After you have created the ApiServerSource, you will see it connected to the service it is sinked to in the **Topology** view.
+
image::toplogy-odc-apiserver.png[ApiServerSource Topology view]
[NOTE]
====
If a URI sink is used, modify the URI by right-clicking on *URI sink* -> *Edit URI*.
====
= Deleting the ApiServerSource
.Procedure
. Navigate to the **Topology** view.
. Right-click the ApiServerSource and select **Delete ApiServerSource**.
+
image::delete-apiserversource-odc.png[Delete the ApiServerSource]