Skip to content

Commit

Permalink
chore: add clone image documenation (#346)
Browse files Browse the repository at this point in the history
* chore(clone-image): add documentation for clone image flag

* add to server page

---------

Co-authored-by: Easton Crupper <[email protected]>
  • Loading branch information
wass3r and ecrupper authored Mar 6, 2023
1 parent f98221e commit 4ad05c6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
10 changes: 10 additions & 0 deletions content/installation/server/reference/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,16 @@ The variable can be provided as a `duration` (i.e. `5s`, `10m`).
This variable has a default value of `15m`.
{{% /alert %}}

### VELA_CLONE_IMAGE

This configuration variable is used by the [compiler component](/docs/installation/server/reference/compiler) for the server.

The clone image sets the clone image to use for the Vela injected clone step in a pipeline.

By default, Vela will use the latest available release of the clone image at the time of a server release.

This variable should be provided as a `string`.

### VELA_COMPILER_GITHUB

This configuration variable is used by the [compiler component](/docs/installation/server/reference/compiler/) for the server.
Expand Down
23 changes: 13 additions & 10 deletions content/installation/server/reference/compiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,18 @@ Some examples of what the modification endpoint can do include, but are not limi

The following options are used to configure the component:

| Name | Description | Required | Default | Environment Variables |
| ---------------------- | ------------------------------------------------------------------------------- | -------- | ------- | ------------------------------------------------------- |
| `github-driver` | enables using Github or GitHub Enterprise Server as a registry for templates | `false` | `false` | `COMPILER_GITHUB`<br>`VELA_COMPILER_GITHUB` |
| `github-url` | fully qualified url to GitHub or GitHub Enterprise Server for templates | `false` | `N/A` | `COMPILER_GITHUB_URL`<br>`VELA_COMPILER_GITHUB_URL` |
| `github-token` | token used for authentication when fetching registry templates | `false` | `N/A` | `COMPILER_GITHUB_TOKEN`<br>`VELA_COMPILER_GITHUB_TOKEN` |
| `modification-addr` | fully qualified url to endpoint for modifying pipelines | `false` | `N/A` | `MODIFICATION_ADDR`<br>`VELA_MODIFICATION_ADDR` |
| `modification-retries` | number of times to resend failed requests to the modification endpoint | `false` | `5` | `MODIFICATION_RETRIES`<br>`VELA_MODIFICATION_RETRIES` |
| `modification-secret` | authenticates communication between compiler and the modification endpoint | `false` | `N/A` | `MODIFICATION_SECRET`<br>`VELA_MODIFICATION_SECRET` |
| `modification-timeout` | timeout for requests sent to the modification endpoint | `false` | `8s` | `MODIFICATION_TIMEOUT`<br>`VELA_MODIFICATION_TIMEOUT` |
| Name | Description | Required | Default | Environment Variables |
| ---------------------- | ------------------------------------------------------------------------------- | -------- | --------------------- | ------------------------------------------------------- |
| `clone-image` | default clone image to use for Vela injected clone step | `true` | `target/vela-git` (1) | `VELA_CLONE_IMAGE` |
| `github-driver` | enables using Github or GitHub Enterprise Server as a registry for templates | `false` | `false` | `COMPILER_GITHUB`<br>`VELA_COMPILER_GITHUB` |
| `github-url` | fully qualified url to GitHub or GitHub Enterprise Server for templates | `false` | `N/A` | `COMPILER_GITHUB_URL`<br>`VELA_COMPILER_GITHUB_URL` |
| `github-token` | token used for authentication when fetching registry templates | `false` | `N/A` | `COMPILER_GITHUB_TOKEN`<br>`VELA_COMPILER_GITHUB_TOKEN` |
| `modification-addr` | fully qualified url to endpoint for modifying pipelines | `false` | `N/A` | `MODIFICATION_ADDR`<br>`VELA_MODIFICATION_ADDR` |
| `modification-retries` | number of times to resend failed requests to the modification endpoint | `false` | `5` | `MODIFICATION_RETRIES`<br>`VELA_MODIFICATION_RETRIES` |
| `modification-secret` | authenticates communication between compiler and the modification endpoint | `false` | `N/A` | `MODIFICATION_SECRET`<br>`VELA_MODIFICATION_SECRET` |
| `modification-timeout` | timeout for requests sent to the modification endpoint | `false` | `8s` | `MODIFICATION_TIMEOUT`<br>`VELA_MODIFICATION_TIMEOUT` |

_(1) this will be the latest available, tagged release of `target/vela-git` at the time the server component is released_

{{% alert title="Note:" color="primary" %}}
For more information on these configuration options, please see the [server reference](/docs/installation/server/reference/).
Expand Down Expand Up @@ -118,4 +121,4 @@ $ docker run \
--publish=443:443 \
--restart=always \
target/vela-server:latest
```
```

0 comments on commit 4ad05c6

Please sign in to comment.