summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Lewis <mlewis@gitlab.com>2019-01-11 13:52:48 +0000
committerMike Lewis <mlewis@gitlab.com>2019-01-11 13:52:48 +0000
commit249607c0ca6a77db5c45a79f5df8152d78c04bfc (patch)
treea965f0d30829be1769d1c810f49bfbe989c7c381
parent3ce491c5a065be80856e1f8d5097caba7ea8dd5d (diff)
parent33c016b25841dd93ffbe10b65f68e7bc379d9710 (diff)
downloadgitlab-ce-249607c0ca6a77db5c45a79f5df8152d78c04bfc.tar.gz
Merge branch 'docs-serverless-function-sample' into 'master'
Add link to sample project for functions See merge request gitlab-org/gitlab-ce!24323
-rw-r--r--doc/user/project/clusters/serverless/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/user/project/clusters/serverless/index.md b/doc/user/project/clusters/serverless/index.md
index 5e8824513b0..9ecb109fa89 100644
--- a/doc/user/project/clusters/serverless/index.md
+++ b/doc/user/project/clusters/serverless/index.md
@@ -103,7 +103,7 @@ In order to deploy functions to your Knative instance, the following files must
The `gitlab-ci.yml` template creates a `Deploy` stage with a `functions` job that invokes the `tm` CLI with the required parameters.
2. `serverless.yml`: This file contains the metadata for your functions,
- such as name, runtime, and environment. It must be included at the root of your repository. The following is a sample `echo` function which shows the required structure for the file.
+ such as name, runtime, and environment. It must be included at the root of your repository. The following is a sample `echo` function which shows the required structure for the file. You can find the relevant files for this project in the [functions example project](https://gitlab.com/knative-examples/functions).
```yaml
service: my-functions
@@ -127,7 +127,7 @@ In order to deploy functions to your Knative instance, the following files must
```
-The `serverless.yml` file contains three sections with distinct parameters:
+The `serverless.yml` file is referencing both an `echo` directory (under `buildargs`) and an `echo` file (under `handler`) which is a reference to `echo.js` in the [repository](https://gitlab.com/knative-examples/functions). Additionally, it contains three sections with distinct parameters:
### `service`