From dc9710d1f6b631472c5f8c4cc6df5d3df61316e2 Mon Sep 17 00:00:00 2001 From: Matthias Wessendorf Date: Tue, 12 Sep 2023 08:15:33 +0200 Subject: [PATCH] Adding some context for the FUNC_REGISTRY variable and highlighting the fact that the prompt asks for an image registry Signed-off-by: Matthias Wessendorf --- docs/snippets/proc-building-function.md | 5 ++++- docs/snippets/proc-running-function.md | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/snippets/proc-building-function.md b/docs/snippets/proc-building-function.md index cffbbe33c2..505c2132af 100644 --- a/docs/snippets/proc-building-function.md +++ b/docs/snippets/proc-building-function.md @@ -2,7 +2,7 @@ - /docs/getting-started/build-run-deploy-func.md - /docs/functions/building-functions.md --> -The `build` command uses the project name and the image registry name to construct a fully qualified container image name for the function. If the function project has not previously been built, you are prompted to provide an image registry. +The `build` command uses the project name and the image registry name to construct a fully qualified container image name for the function. If the function project has not previously been built, you are prompted to provide an **image registry**. === "func" @@ -19,3 +19,6 @@ The `build` command uses the project name and the image registry name to constru ```bash kn func build ``` + +!!! note + The coordinates for the **image registry** can be configured through an environment variable (`FUNC_REGISTRY`) as well. diff --git a/docs/snippets/proc-running-function.md b/docs/snippets/proc-running-function.md index e968f40767..c91636d79d 100644 --- a/docs/snippets/proc-running-function.md +++ b/docs/snippets/proc-running-function.md @@ -16,6 +16,9 @@ The `run` command builds an image for your function if required, and runs this i func run [--registry ] ``` +!!! note + The coordinates for the **image registry** can be configured through an environment variable (`FUNC_REGISTRY`) as well. + Using this command also builds the function if necessary. You can force a rebuild of the image by running the command: