Skip to content

Commit 3987292

Browse files
committed
Reorg, add, & update content on page "Getting started with functions"
1 parent dff6c00 commit 3987292

6 files changed

+10
-8
lines changed

modules/functions-list-kn.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies
22

3-
// * /serverless/cli_reference/kn-func-ref.adoc
3+
// * /serverless/cli_tools/kn-func-ref.adoc
44

55
:_content-type: PROCEDURE
66
[id="functions-list-kn_{context}"]

modules/serverless-functions-creating-on-cluster-builds.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * /serverless/functions/serverless-functions-getting-started.adoc
3+
// * /serverless/functions/serverless-functions-on-cluster-builds.adoc
44

55
:_content-type: PROCEDURE
66
[id="serverless-functions-creating-on-cluster-builds_{context}"]

modules/delete-function-kn.adoc renamed to modules/serverless-kn-func-delete.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Module included in the following assemblies
22

3-
// * /serverless/cli_reference/kn-func-ref.adoc
3+
// * serverless/cli_tools/kn-func-ref.adoc
44

55
:_content-type: PROCEDURE
6-
[id="delete-function-kn_{context}"]
6+
[id="serverless-kn-func-delete_{context}"]
77
= Deleting a function
88

9-
You can delete a function from your cluster by using the `kn func delete` command.
9+
You can delete a function by using the `kn func delete` command. This is useful when a function is no longer required, and can help to save resources on your cluster.
1010

1111
.Procedure
1212

modules/serverless-kn-func-invoke.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Module included in the following assemblies:
22
//
33
// * serverless/functions/serverless-functions-getting-started.adoc
4-
// * serverless/reference/kn-func-ref.adoc
4+
// * serverless/cli_tools/kn-func-ref.adoc
55

66
:_content-type: PROCEDURE
77
[id="serverless-kn-func-invoke_{context}"]
88
= Invoking a deployed function with a test event
99

10-
You can use the `kn func invoke` CLI command to send a test request to invoke a function either locally or on your {product-title} cluster. This command can be used to test that a function is working and able to receive events correctly.
10+
You can use the `kn func invoke` CLI command to send a test request to invoke a function either locally or on your {product-title} cluster. You can use this command to test that a function is working and able to receive events correctly. Invoking a function locally is useful for a quick test during function development. Invoking a function on the cluster is useful for testing that is closer to the production environment.
1111

1212
.Prerequisites
1313

@@ -24,4 +24,5 @@ You can use the `kn func invoke` CLI command to send a test request to invoke a
2424
----
2525
$ kn func invoke
2626
----
27+
** The `kn func invoke` command only works when there is either a local container image currently running, or when there is a function deployed in the cluster.
2728
** The `kn func invoke` command executes on the local directory by default, and assumes that this directory is a function project.

serverless/cli_tools/kn-func-ref.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ include::modules/functions-list-kn.adoc[leveloffset=+1]
1414
include::modules/describe-function-kn.adoc[leveloffset=+1]
1515
include::modules/serverless-kn-func-invoke.adoc[leveloffset=+1]
1616
include::modules/serverless-kn-func-invoke-reference.adoc[leveloffset=+2]
17-
include::modules/delete-function-kn.adoc[leveloffset=+1]
17+
include::modules/serverless-kn-func-delete.adoc[leveloffset=+1]

serverless/functions/serverless-functions-getting-started.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ include::modules/serverless-kn-func-run.adoc[leveloffset=+1]
2121
include::modules/serverless-build-func-kn.adoc[leveloffset=+1]
2222
include::modules/serverless-deploy-func-kn.adoc[leveloffset=+1]
2323
include::modules/serverless-kn-func-invoke.adoc[leveloffset=+1]
24+
include::modules/serverless-kn-func-delete.adoc[leveloffset=+1]
2425

2526
ifdef::openshift-enterprise[]
2627
[id="additional-resources_serverless-functions-getting-started"]

0 commit comments

Comments
 (0)