Skip to content

Commit f1f020b

Browse files
authored
Merge pull request #49036 from abrennan89/SRVOCF-439
[SRVOCF-439]: Minor functions fixes
2 parents ceab620 + dff72a9 commit f1f020b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

modules/serverless-functions-func-yaml-fields.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ envs:
6868
<5> A set of environment variables imported from key-value pairs of a secret.
6969
<6> A set of environment variables imported from key-value pairs of a config map.
7070

71+
[id="serverless-functions-func-yaml-builder_{context}"]
72+
== builder
73+
74+
The `builder` field specifies the strategy used by the function to build the image. It accepts values of `pack` or `s2i`.
75+
76+
[id="serverless-functions-func-yaml-build_{context}"]
77+
== build
78+
79+
The `build` field indicates how the function should be built. The value `local` indicates that the function is built locally on your machine. The value `git` indicates that the function is built on a cluster by using the values specified in the `git` field.
80+
7181
[id="serverless-functions-func-yaml-volumes_{context}"]
7282
== volumes
7383

serverless/functions/serverless-functions-yaml.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
The `func.yaml` file contains the configuration for your function project. Values specified in `func.yaml` are used when you execute a `kn func` command. For example, when you run the `kn func build` command, the value in the `builder` field is used. In some cases, you can override these values with command line flags or environment variables.
9+
The `func.yaml` file contains the configuration for your function project. Values specified in `func.yaml` are used when you execute a `kn func` command. For example, when you run the `kn func build` command, the value in the `build` field is used. In some cases, you can override these values with command line flags or environment variables.
1010

1111
include::modules/serverless-functions-func-yaml-fields.adoc[leveloffset=+1]
1212
include::modules/serverless-functions-func-yaml-environment-variables.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)