mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: per template opt into cached terraform directories (#20609)
For experimental and dogfood purposes, this adds the ability to opt in a single template. Leaving the rest of the templates as is. For GA, this setting might be removed or changed.
This commit is contained in:
Generated
+6
-2
@@ -8119,7 +8119,8 @@ Only certain features set these fields: - FeatureManagedAgentLimit|
|
||||
"time_til_dormant_autodelete_ms": 0,
|
||||
"time_til_dormant_ms": 0,
|
||||
"updated_at": "2019-08-24T14:15:22Z",
|
||||
"use_classic_parameter_flow": true
|
||||
"use_classic_parameter_flow": true,
|
||||
"use_terraform_workspace_cache": true
|
||||
}
|
||||
```
|
||||
|
||||
@@ -8160,6 +8161,7 @@ Only certain features set these fields: - FeatureManagedAgentLimit|
|
||||
| `time_til_dormant_ms` | integer | false | | |
|
||||
| `updated_at` | string | false | | |
|
||||
| `use_classic_parameter_flow` | boolean | false | | |
|
||||
| `use_terraform_workspace_cache` | boolean | false | | |
|
||||
|
||||
#### Enumerated Values
|
||||
|
||||
@@ -9211,7 +9213,8 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
|
||||
"time_til_dormant_ms": 0,
|
||||
"update_workspace_dormant_at": true,
|
||||
"update_workspace_last_used_at": true,
|
||||
"use_classic_parameter_flow": true
|
||||
"use_classic_parameter_flow": true,
|
||||
"use_terraform_workspace_cache": true
|
||||
}
|
||||
```
|
||||
|
||||
@@ -9241,6 +9244,7 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
|
||||
| `update_workspace_dormant_at` | boolean | false | | Update workspace dormant at updates the dormant_at field of workspaces spawned from the template. This is useful for preventing dormant workspaces being immediately deleted when updating the dormant_ttl field to a new, shorter value. |
|
||||
| `update_workspace_last_used_at` | boolean | false | | Update workspace last used at updates the last_used_at field of workspaces spawned from the template. This is useful for preventing workspaces being immediately locked when updating the inactivity_ttl field to a new, shorter value. |
|
||||
| `use_classic_parameter_flow` | boolean | false | | Use classic parameter flow is a flag that switches the default behavior to use the classic parameter flow when creating a workspace. This only affects deployments with the experiment "dynamic-parameters" enabled. This setting will live for a period after the experiment is made the default. An "opt-out" is present in case the new feature breaks some existing templates. |
|
||||
| `use_terraform_workspace_cache` | boolean | false | | Use terraform workspace cache allows optionally specifying whether to use cached terraform directories for workspaces created from this template. This field only applies when the correct experiment is enabled. This field is subject to being removed in the future. |
|
||||
|
||||
## codersdk.UpdateUserAppearanceSettingsRequest
|
||||
|
||||
|
||||
Generated
+16
-7
@@ -80,7 +80,8 @@ To include deprecated templates, specify `deprecated:true` in the search query.
|
||||
"time_til_dormant_autodelete_ms": 0,
|
||||
"time_til_dormant_ms": 0,
|
||||
"updated_at": "2019-08-24T14:15:22Z",
|
||||
"use_classic_parameter_flow": true
|
||||
"use_classic_parameter_flow": true,
|
||||
"use_terraform_workspace_cache": true
|
||||
}
|
||||
]
|
||||
```
|
||||
@@ -138,6 +139,7 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
|
||||
|`» time_til_dormant_ms`|integer|false|||
|
||||
|`» updated_at`|string(date-time)|false|||
|
||||
|`» use_classic_parameter_flow`|boolean|false|||
|
||||
|`» use_terraform_workspace_cache`|boolean|false|||
|
||||
|
||||
#### Enumerated Values
|
||||
|
||||
@@ -266,7 +268,8 @@ curl -X POST http://coder-server:8080/api/v2/organizations/{organization}/templa
|
||||
"time_til_dormant_autodelete_ms": 0,
|
||||
"time_til_dormant_ms": 0,
|
||||
"updated_at": "2019-08-24T14:15:22Z",
|
||||
"use_classic_parameter_flow": true
|
||||
"use_classic_parameter_flow": true,
|
||||
"use_terraform_workspace_cache": true
|
||||
}
|
||||
```
|
||||
|
||||
@@ -416,7 +419,8 @@ curl -X GET http://coder-server:8080/api/v2/organizations/{organization}/templat
|
||||
"time_til_dormant_autodelete_ms": 0,
|
||||
"time_til_dormant_ms": 0,
|
||||
"updated_at": "2019-08-24T14:15:22Z",
|
||||
"use_classic_parameter_flow": true
|
||||
"use_classic_parameter_flow": true,
|
||||
"use_terraform_workspace_cache": true
|
||||
}
|
||||
```
|
||||
|
||||
@@ -832,7 +836,8 @@ To include deprecated templates, specify `deprecated:true` in the search query.
|
||||
"time_til_dormant_autodelete_ms": 0,
|
||||
"time_til_dormant_ms": 0,
|
||||
"updated_at": "2019-08-24T14:15:22Z",
|
||||
"use_classic_parameter_flow": true
|
||||
"use_classic_parameter_flow": true,
|
||||
"use_terraform_workspace_cache": true
|
||||
}
|
||||
]
|
||||
```
|
||||
@@ -890,6 +895,7 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
|
||||
|`» time_til_dormant_ms`|integer|false|||
|
||||
|`» updated_at`|string(date-time)|false|||
|
||||
|`» use_classic_parameter_flow`|boolean|false|||
|
||||
|`» use_terraform_workspace_cache`|boolean|false|||
|
||||
|
||||
#### Enumerated Values
|
||||
|
||||
@@ -1036,7 +1042,8 @@ curl -X GET http://coder-server:8080/api/v2/templates/{template} \
|
||||
"time_til_dormant_autodelete_ms": 0,
|
||||
"time_til_dormant_ms": 0,
|
||||
"updated_at": "2019-08-24T14:15:22Z",
|
||||
"use_classic_parameter_flow": true
|
||||
"use_classic_parameter_flow": true,
|
||||
"use_terraform_workspace_cache": true
|
||||
}
|
||||
```
|
||||
|
||||
@@ -1140,7 +1147,8 @@ curl -X PATCH http://coder-server:8080/api/v2/templates/{template} \
|
||||
"time_til_dormant_ms": 0,
|
||||
"update_workspace_dormant_at": true,
|
||||
"update_workspace_last_used_at": true,
|
||||
"use_classic_parameter_flow": true
|
||||
"use_classic_parameter_flow": true,
|
||||
"use_terraform_workspace_cache": true
|
||||
}
|
||||
```
|
||||
|
||||
@@ -1207,7 +1215,8 @@ curl -X PATCH http://coder-server:8080/api/v2/templates/{template} \
|
||||
"time_til_dormant_autodelete_ms": 0,
|
||||
"time_til_dormant_ms": 0,
|
||||
"updated_at": "2019-08-24T14:15:22Z",
|
||||
"use_classic_parameter_flow": true
|
||||
"use_classic_parameter_flow": true,
|
||||
"use_terraform_workspace_cache": true
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user