-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: platform settings usage/admin docs (#419)
* feat: platform settings usage/admin docs * fix: tweaks * fix: format * fix: format * fix: format * fix: prop --------- Co-authored-by: Easton Crupper <65553218+ecrupper@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
108 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
title: "Settings" | ||
linkTitle: "Settings" | ||
weight: 1 | ||
description: > | ||
This section contains information on using dynamic platform settings for the Vela server. | ||
--- | ||
|
||
Platform Administrators can update certain properties during runtime to change how the platform behaves in real time. | ||
|
||
The following properties are available to be updated: | ||
|
||
* [`VELA_REPO_ALLOWLIST`](/docs/installation/server/reference#vela_repo_allowlist) | ||
* [`VELA_SCHEDULE_ALLOWLIST`](/docs/installation/server/reference#vela_schedule_allowlist) | ||
* [`VELA_MAX_TEMPLATE_DEPTH`](/docs/installation/server/reference#vela_max_template_depth) | ||
* [`VELA_COMPILER_STARLARK_EXEC_LIMIT`](/docs/installation/server/reference#vela_compiler_starlark_exec_limit) | ||
* [`VELA_CLONE_IMAGE`](/docs/installation/server/reference#vela_clone_image) | ||
|
||
|
||
## Configuration | ||
|
||
The following options are used to configure the component: | ||
|
||
| Name | Description | Required | Default | Environment Variables | | ||
| --------------------------- | -------------------------------------------------------- | -------- | ------- | --------------------------------------------------------------------------- | | ||
| `settings-refresh-interval` | the interval at which the server syncs with the database | `true` | `5s` | `VELA_PLATFORM_SETTINGS_REFRESH_INTERVAL`, `VELA_SETTINGS_REFRESH_INTERVAL` | | ||
|
||
{{% alert title="Note:" color="primary" %}} | ||
For more information on how the runtime properties are consumed, please see the [server reference](/docs/installation/server/reference/). | ||
{{% /alert %}} | ||
|
||
## Permissions | ||
|
||
This functionality only exists for [Platform Administrators](/docs/usage/roles/). | ||
|
||
## Usage | ||
|
||
### Initializing | ||
|
||
The server will ensure shared settings are first initialized using the variables provided in the environment. For more information on how the runtime properties are configured, please see the [server reference](/docs/installation/server/reference/). | ||
|
||
On subsequent server startups, the properties controlled by the `settings` component will be retrieved from the database. | ||
|
||
If the database settings record is deleted then the server will fail. On the next startup the server will re-initialize the settings record using the values provided in the environment. | ||
|
||
### Server Synchronization | ||
|
||
The server will keep its own `settings` in sync with the database according to the `settings-refresh-interval` set in the environment. | ||
|
||
### Viewing and Updating Properties | ||
|
||
To view or update settings via the user interface, log into your Vela instance and click the `site admin` link in the top right corner or navigate to `https://vela-server.example.com/admin/settings`. | ||
|
||
Check the [CLI docs](/docs/reference/cli/settings) for instructions on modifying runtime properties via the command line. | ||
|
||
Updated properties will propagate to all server instances depending on the `settings-refresh-interval` set in the environment on startup. | ||
|
||
### Restoring Default Properties | ||
|
||
The [`DELETE /api/v1/admin/settings`](/docs/reference/api/admin/settings/restore) API endpoint can be used to "restore" the server to its original environment-provided configurations. Acting as a way for platform admins to undo any current modifications to the platform without restarting or modifying the database. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters