Skip to content

Commit f0c7106

Browse files
authored
Merge pull request #49305 from abrennan89/SRVOCF-441
[SRVOCF-441]: Updated docs for connecting func and sources
2 parents 170831e + f3c6cdd commit f0c7106

File tree

3 files changed

+38
-7
lines changed

3 files changed

+38
-7
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/functions/serverless-functions-eventing.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="serverless-connect-func-source-odc_{context}"]
7+
= Connect an event source to a function using the Developer perspective
8+
9+
Functions are deployed as Knative services on an {product-title} cluster. When you create an event source by using the {product-title} web console, you can specify a deployed function that events are sent to from that source.
10+
11+
.Prerequisites
12+
13+
* The {ServerlessOperatorName}, Knative Serving, and Knative Eventing are installed on your {product-title} cluster.
14+
* You have logged in to the web console and are in the *Developer* perspective.
15+
* You have created a project or have access to a project with the appropriate roles and permissions to create applications and other workloads in {product-title}.
16+
* You have created and deployed a function.
17+
18+
.Procedure
19+
20+
. Create an event source of any type, by navigating to *+Add* -> *Event Source* and selecting the event source type that you want to create.
21+
22+
. In the *Sink* section of the *Create Event Source* form view, select your function in the *Resource* list.
23+
24+
. Click *Create*.
25+
26+
.Verification
27+
28+
You can verify that the event source was created and is connected to the function by viewing the *Topology* page.
29+
30+
. In the *Developer* perspective, navigate to *Topology*.
31+
32+
. View the event source and click the connected function to see the function details in the right panel.

modules/serverless-connect-sink-source-odc.adoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// Module included in the following assemblies:
22
//
33
// * serverless/develop/serverless-event-sinks.adoc
4-
// * serverless/functions/serverless-functions-eventing.adoc
54

65
:_content-type: PROCEDURE
76
[id="serverless-connect-sink-source-odc_{context}"]
87
= Connect an event source to a sink using the Developer perspective
98

10-
When you create an event source by using the {product-title} web console, you can specify a sink where events are sent to from that resource. The sink can be any addressable or callable resource that can receive incoming events from other resources.
9+
When you create an event source by using the {product-title} web console, you can specify a sink that events are sent to from that source. The sink can be any addressable or callable resource that can receive incoming events from other resources.
1110

1211
.Prerequisites
1312

@@ -18,7 +17,7 @@ When you create an event source by using the {product-title} web console, you ca
1817
1918
.Procedure
2019

21-
. Create an event source of any type, by navigating to *+Add* -> *Event Source* and then selecting the event source type that you want to create.
20+
. Create an event source of any type, by navigating to *+Add* -> *Event Source* and selecting the event source type that you want to create.
2221

2322
. In the *Sink* section of the *Create Event Source* form view, select your sink in the *Resource* list.
2423

@@ -30,4 +29,4 @@ You can verify that the event source was created and is connected to the sink by
3029

3130
. In the *Developer* perspective, navigate to *Topology*.
3231

33-
. View the event source and click on the connected sink to see the sink details in the side panel.
32+
. View the event source and click the connected sink to see the sink details in the right panel.

serverless/functions/serverless-functions-eventing.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9+
Functions are deployed as Knative services on an {product-title} cluster. You can connect functions to Knative Eventing components so that they can receive incoming events.
10+
911
:FeatureName: {FunctionsProductName}
1012
include::snippets/technology-preview.adoc[leveloffset=+2]
1113

12-
Functions are deployed as Knative services on an {product-title} cluster. You can connect functions as an event sink to Knative Eventing components so that they can receive incoming events.
13-
14-
include::modules/serverless-connect-sink-source-odc.adoc[leveloffset=+1]
14+
include::modules/serverless-connect-func-source-odc.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)