Skip to content

Commit 931bf72

Browse files
authored
Merge pull request #41939 from abrennan89/021522
SRVCOM-1288 + SRVCOM-1664: Clean up attributes, prereqs
2 parents 3aacf4d + 365a7ea commit 931bf72

File tree

36 files changed

+172
-47
lines changed

36 files changed

+172
-47
lines changed

modules/serverless-build-func-kn.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/functions/serverless-functions-getting-started.adoc
4+
5+
:_content-type: REFERENCE
16
[id="serverless-build-func-kn_{context}"]
27
= Building functions
38

modules/serverless-create-func-kn.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/functions/serverless-functions-getting-started.adoc
4+
15
:_content-type: PROCEDURE
26
[id="serverless-create-func-kn_{context}"]
37
= Creating functions
@@ -6,6 +10,11 @@ You can create a basic serverless function using the `kn` CLI.
610

711
You can specify the path, runtime, template, and repository with the template as flags on the command line, or use the `-c` flag to start the interactive experience in the terminal.
812

13+
.Prerequisites
14+
15+
* The {ServerlessOperatorName} and Knative Serving are installed on the cluster.
16+
* You have installed the `kn` CLI.
17+
918
.Procedure
1019

1120
* Create a function project:

modules/serverless-deploy-func-kn.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/functions/serverless-functions-getting-started.adoc
4+
15
:_content-type: PROCEDURE
26
[id="serverless-deploy-func-kn_{context}"]
37
= Deploying functions
@@ -8,7 +12,10 @@ If the targeted function is already deployed, it is updated with a new container
812

913
.Prerequisites
1014

11-
* You must have already initialized the function that you want to deploy.
15+
* The {ServerlessOperatorName} and Knative Serving are installed on the cluster.
16+
* You have installed the `kn` CLI.
17+
* 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}.
18+
* You must have already created and initialized the function that you want to deploy.
1219
1320
.Procedure
1421

modules/serverless-functions-podman.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// * serverless/serverless-functions-setup.adoc
44

5+
:_content-type: PROCEDURE
56
[id="serverless-functions-podman_{context}"]
67
= Using podman
78

modules/serverless-functions-quarkus-return-value-types.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Module included in the following assemblies
22
//
3-
// * /serverless/functions/serverless-developing-quarkus-functions.adoc
3+
// * serverless/functions/serverless-developing-quarkus-functions.adoc
44

5+
:_content-type: REFERENCE
56
[id="serverless-functions-quarkus-return-value-types_{context}"]
67
= Permitted types
78

modules/serverless-functions-using-integrated-registry.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
// Module included in the following assemblies:
22
//
3-
// * serverless/serverless-functions-setup.adoc
3+
// * serverless/functions/serverless-functions-getting-started.adoc
44

55
:_content-type: PROCEDURE
66
[id="serverless-functions-using-integrated-registry_{context}"]
77
= Building and deploying functions with OpenShift Container Registry
88

99
When building and deploying functions, the resulting container image is stored in an image registry. Usually this will be a public registry, such as Quay. However, you can use the integrated OpenShift Container Registry instead if it has been exposed by a cluster administrator.
1010

11+
.Prerequisites
12+
13+
* The {ServerlessOperatorName} and Knative Serving are installed on the cluster.
14+
* OpenShift Container Registry has been exposed by a cluster administrator.
15+
* 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}.
17+
1118
.Procedure
1219

1320
* Run the `kn func build` command, or the `kn func deploy` command, with the OpenShift Container Registry and the namespace specified for the `-r` parameter:

modules/serverless-go-function-return-values.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Module included in the following assemblies
22
//
3-
// * /serverless/functions/serverless-developing-go-functions.adoc
3+
// * serverless/functions/serverless-developing-go-functions.adoc
44

5+
:_content-type: REFERENCE
56
[id="serverless-go-function-return-values_{context}"]
67
= Golang function return values
78

modules/serverless-go-template.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Module included in the following assemblies
22
//
3-
// * /serverless/functions/serverless-developing-go-functions.adoc
3+
// * serverless/functions/serverless-developing-go-functions.adoc
44

5+
:_content-type: REFERENCE
56
[id="serverless-go-template_{context}"]
67
= Golang function template structure
78

modules/serverless-invoking-go-functions-cloudevent.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Module included in the following assemblies
2+
//
3+
// * serverless/functions/serverless-developing-go-functions.adoc
4+
5+
:_content-type: REFERENCE
16
[id="serverless-invoking-go-functions-cloudevent_{context}"]
27
= Functions triggered by a cloud event
38

modules/serverless-invoking-go-functions-http.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Module included in the following assemblies
2+
//
3+
// * serverless/functions/serverless-developing-go-functions.adoc
4+
5+
:_content-type: REFERENCE
16
[id="serverless-invoking-go-functions-http_{context}"]
27
= Functions triggered by an HTTP request
38

0 commit comments

Comments
 (0)