mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
feat: add prebuilds configuration & bootstrapping (#17527)
Closes https://github.com/coder/internal/issues/508 --------- Signed-off-by: Danny Kopping <dannykopping@gmail.com> Co-authored-by: Cian Johnston <cian@coder.com>
This commit is contained in:
co-authored by
Cian Johnston
parent
e562e3c882
commit
08ad910171
Generated
+5
@@ -519,6 +519,11 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
|
||||
"wgtunnel_host": "string",
|
||||
"wildcard_access_url": "string",
|
||||
"workspace_hostname_suffix": "string",
|
||||
"workspace_prebuilds": {
|
||||
"reconciliation_backoff_interval": 0,
|
||||
"reconciliation_backoff_lookback": 0,
|
||||
"reconciliation_interval": 0
|
||||
},
|
||||
"write_config": true
|
||||
},
|
||||
"options": [
|
||||
|
||||
Generated
+30
@@ -2170,6 +2170,11 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
"wgtunnel_host": "string",
|
||||
"wildcard_access_url": "string",
|
||||
"workspace_hostname_suffix": "string",
|
||||
"workspace_prebuilds": {
|
||||
"reconciliation_backoff_interval": 0,
|
||||
"reconciliation_backoff_lookback": 0,
|
||||
"reconciliation_interval": 0
|
||||
},
|
||||
"write_config": true
|
||||
},
|
||||
"options": [
|
||||
@@ -2650,6 +2655,11 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
"wgtunnel_host": "string",
|
||||
"wildcard_access_url": "string",
|
||||
"workspace_hostname_suffix": "string",
|
||||
"workspace_prebuilds": {
|
||||
"reconciliation_backoff_interval": 0,
|
||||
"reconciliation_backoff_lookback": 0,
|
||||
"reconciliation_interval": 0
|
||||
},
|
||||
"write_config": true
|
||||
}
|
||||
```
|
||||
@@ -2719,6 +2729,7 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
| `wgtunnel_host` | string | false | | |
|
||||
| `wildcard_access_url` | string | false | | |
|
||||
| `workspace_hostname_suffix` | string | false | | |
|
||||
| `workspace_prebuilds` | [codersdk.PrebuildsConfig](#codersdkprebuildsconfig) | false | | |
|
||||
| `write_config` | boolean | false | | |
|
||||
|
||||
## codersdk.DisplayApp
|
||||
@@ -2817,6 +2828,7 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
| `workspace-usage` |
|
||||
| `web-push` |
|
||||
| `dynamic-parameters` |
|
||||
| `workspace-prebuilds` |
|
||||
|
||||
## codersdk.ExternalAuth
|
||||
|
||||
@@ -4659,6 +4671,24 @@ Git clone makes use of this by parsing the URL from: 'Username for "https://gith
|
||||
| `address` | [serpent.HostPort](#serpenthostport) | false | | |
|
||||
| `enable` | boolean | false | | |
|
||||
|
||||
## codersdk.PrebuildsConfig
|
||||
|
||||
```json
|
||||
{
|
||||
"reconciliation_backoff_interval": 0,
|
||||
"reconciliation_backoff_lookback": 0,
|
||||
"reconciliation_interval": 0
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|-----------------------------------|---------|----------|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `reconciliation_backoff_interval` | integer | false | | Reconciliation backoff interval specifies the amount of time to increase the backoff interval when errors occur during reconciliation. |
|
||||
| `reconciliation_backoff_lookback` | integer | false | | Reconciliation backoff lookback determines the time window to look back when calculating the number of failed prebuilds, which influences the backoff strategy. |
|
||||
| `reconciliation_interval` | integer | false | | Reconciliation interval defines how often the workspace prebuilds state should be reconciled. |
|
||||
|
||||
## codersdk.Preset
|
||||
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user