Skip to content

Commit 6d9b9ca

Browse files
committed
SRVCOM-1288 + SRVCOM-1664: Clean up attributes, prereqs
1 parent b972879 commit 6d9b9ca

File tree

45 files changed

+333
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+333
-67
lines changed

_topic_maps/_topic_map.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3228,6 +3228,8 @@ Topics:
32283228
File: serverless-event-sinks
32293229
- Name: Event delivery
32303230
File: serverless-event-delivery
3231+
- Name: Listing event sources and event source types
3232+
File: serverless-listing-event-sources
32313233
- Name: Creating an API server source
32323234
File: serverless-apiserversource
32333235
- Name: Creating a ping source
@@ -3335,7 +3337,7 @@ Topics:
33353337
File: serverless-functions-eventing
33363338
- Name: Function project configuration in func.yaml
33373339
File: serverless-functions-yaml
3338-
- Name: Accessing secrets and config maps from Serverless functions
3340+
- Name: Accessing secrets and config maps from functions
33393341
File: serverless-functions-accessing-secrets-configmaps
33403342
- Name: Adding annotations to functions
33413343
File: serverless-functions-annotations
@@ -3358,15 +3360,13 @@ Topics:
33583360
- Name: Reference
33593361
Dir: reference
33603362
Topics:
3361-
- Name: kn flags reference
3363+
- Name: Knative CLI flags
33623364
File: kn-flags-reference
33633365
- Name: Knative Serving CLI commands
33643366
File: kn-serving-ref
33653367
- Name: Knative Eventing CLI commands
33663368
File: kn-eventing-ref
3367-
- Name: Listing event sources and event source types
3368-
File: serverless-listing-event-sources
3369-
- Name: kn func
3369+
- Name: Functions commands
33703370
File: kn-func-ref
33713371
- Name: kn event
33723372
File: kn-event-ref

modules/apiserversource-kn.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
3-
// serverless/develop/serverless-apiserversource.adoc
3+
// * serverless/develop/serverless-apiserversource.adoc
4+
// * serverless/reference/kn-eventing-ref.adoc
45

56
:_content-type: PROCEDURE
67
[id="apiserversource-kn_{context}"]

modules/creating-serverless-apps-kn.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
33
// * serverless/develop/serverless-applications.adoc
4+
// * serverless/reference/kn-serving-ref.adoc
45

56
:_content-type: PROCEDURE
67
[id="creating-serverless-apps-kn_{context}"]
@@ -12,6 +13,7 @@ The following procedure describes how you can create a basic serverless applicat
1213

1314
* {ServerlessOperatorName} and Knative Serving are installed on your cluster.
1415
* You have installed the `kn` CLI.
16+
* 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}.
1517
1618
.Procedure
1719

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

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

56
:_content-type: PROCEDURE
67
[id="serverless-connect-sink-source-odc_{context}"]
@@ -10,8 +11,6 @@ You can create multiple event source types in {product-title} that can be connec
1011

1112
.Prerequisites
1213

13-
To connect an event source to a sink using the *Developer* perspective, ensure that:
14-
1514
* The {ServerlessOperatorName}, Knative Serving, and Knative Eventing are installed on your {product-title} cluster.
1615
* You have created a sink.
1716
* You have logged in to the web console and are in the *Developer* perspective.
@@ -20,12 +19,15 @@ To connect an event source to a sink using the *Developer* perspective, ensure t
2019
.Procedure
2120

2221
. Create an event source of any type, by navigating to *+Add* -> *Event Sources* and then selecting the event source type that you want to create.
22+
2323
. In the *Sink* section of the *Event Sources* form view, select *Resource*. Then use the drop-down list to select your sink.
24+
2425
. Click *Create*.
2526

2627
.Verification
2728

2829
You can verify that the event source was created and is connected to the sink by viewing the *Topology* page.
2930

3031
. In the *Developer* perspective, navigate to *Topology*.
32+
3133
. View the event source and click on the connected sink to see the sink details in the side panel.

modules/serverless-create-domain-mapping-kn.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
33
// * serverless/security/serverless-custom-domains.adoc
4+
// * serverless/reference/kn-serving-ref.adoc
45

56
:_content-type: PROCEDURE
67
[id="serverless-create-domain-mapping-kn_{context}"]
@@ -22,6 +23,7 @@ If a prefix is not provided when using the `--ref` flag, it is assumed that the
2223
Your custom domain must point to the DNS of the {product-title} cluster.
2324
====
2425
* You have installed the `kn` CLI tool.
26+
* 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}.
2527
2628
.Procedure
2729

modules/serverless-create-func-kn.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
33
// * serverless/functions/serverless-functions-getting-started.adoc
4+
// * serverless/reference/kn-func-ref.adoc
45

56
:_content-type: PROCEDURE
67
[id="serverless-create-func-kn_{context}"]

modules/serverless-functions-adding-annotations.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/functions/serverless-functions-annotations.adoc
4+
15
:_content-type: PROCEDURE
26
[id="serverless-functions-adding-annotations_{context}"]
37
= Adding annotations to a function
48

9+
You can use the following procedure to add annotations to a function.
10+
11+
.Prerequisites
12+
13+
* The {ServerlessOperatorName} and Knative Serving are installed on the cluster.
14+
* You have installed the `kn` CLI.
15+
* You have created a function.
16+
517
.Procedure
618

719
. Open the `func.yaml` file for your function.

modules/serverless-functions-all-values-in-configmap-to-env-variables.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/functions/serverless-functions-accessing-secrets-configmaps.adoc
4+
15
[id="serverless-functions-all-values-in-configmap-to-env-variables_{context}"]
26
= Setting environment variables from all values defined in a config map
37

8+
You can use the following procedure to set an environment variable from all values defined in a config map.
9+
10+
.Prerequisites
11+
12+
* The {ServerlessOperatorName} and Knative Serving are installed on the cluster.
13+
* You have installed the `kn` CLI.
14+
* You have created a function.
15+
16+
.Procedure
17+
418
. Open the `func.yaml` file for your function.
519

620
. For every config map for which you want to import all key-value pairs as environment variables, add the following YAML to the `envs` section:

modules/serverless-functions-all-values-in-secret-to-env-variables.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/functions/serverless-functions-accessing-secrets-configmaps.adoc
4+
5+
:_content-type: PROCEDURE
16
[id="serverless-functions-all-values-in-secret-to-env-variables_{context}"]
27
= Setting environment variables from all values defined in a secret
38

9+
You can use the following procedure to set an environment variable from all values defined in a secret.
10+
11+
.Prerequisites
12+
13+
* The {ServerlessOperatorName} and Knative Serving are installed on the cluster.
14+
* You have installed the `kn` CLI.
15+
* You have created a function.
16+
17+
.Procedure
18+
419
. Open the `func.yaml` file for your function.
520

621
. For every secret for which you want to import all key-value pairs as environment variables, add the following YAML to the `envs` section:

modules/serverless-functions-func-yaml-environment-variables.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/functions/serverless-functions-yaml.adoc
4+
15
:_content-type: PROCEDURE
26
[id="serverless-functions-func-yaml-environment-variables_{context}"]
37
= Referencing local environment variables from func.yaml fields
48

59
In the `envs` field in the `func.yaml`, you can put a reference to an environment variable available in the local environment. This can be useful for avoiding storing sensitive information, such as an API key in the function configuration.
610

11+
// no prereqs?
12+
713
.Procedure
814

915
* To refer to a local environment variable, use the following syntax:
@@ -17,6 +23,7 @@ Substitute `ENV_VAR` with the name of the variable in the local environment that
1723
+
1824
For example, you might have the `API_KEY` variable available in the local environment. You can assign its value to the `MY_API_KEY` variable, which you can then directly use within your function:
1925
+
26+
.Example function
2027
[source,yaml]
2128
----
2229
name: test
@@ -26,4 +33,5 @@ runtime: go
2633
envs:
2734
- name: MY_API_KEY
2835
value: '{{ env:API_KEY }}'
36+
...
2937
----

0 commit comments

Comments
 (0)