Skip to content

Commit bff0eea

Browse files
committed
docs: add FUNC_USERNAME/PASSWORD env vars documentation
1 parent 6c9f7c1 commit bff0eea

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

docs/snippets/proc-building-function.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,11 @@ The `build` command uses the project name and the image registry name to constru
2222

2323
!!! note
2424
The coordinates for the **image registry** can be configured through an environment variable (`FUNC_REGISTRY`) as well.
25+
26+
!!! tip "Private Registry Authentication"
27+
For private registries that require authentication, you can set credentials using environment variables:
28+
29+
- `FUNC_USERNAME`: The username for registry authentication
30+
- `FUNC_PASSWORD`: The password for registry authentication
31+
32+
These variables work with all builders: `host`, `s2i`, and `pack`.

docs/snippets/proc-deploying-function.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ The `deploy` command uses the function project name as the Knative Service name.
4646
http://hello.default.127.0.0.1.sslip.io
4747
```
4848

49+
!!! tip "Private Registry Authentication"
50+
For private registries that require authentication, you can set credentials using environment variables:
51+
52+
- `FUNC_USERNAME`: The username for registry authentication
53+
- `FUNC_PASSWORD`: The password for registry authentication
54+
55+
These variables work with all builders: `host`, `s2i`, and `pack`.
56+
4957
You can verify that your function has been successfully deployed by using the `invoke` command and observing the output:
5058

5159
=== "func"

0 commit comments

Comments
 (0)