chore: remove per request dynamic parameters opt in and rely on template (#18505)

When in experimental this was used as an escape hatch. Removed to be
consistent with the template author's intentions

Backwards compatible, removing an experimental api field that is no longer used.
This commit is contained in:
Steven Masley
2025-06-23 15:04:09 -05:00
committed by GitHub
parent 6877142a0e
commit f6e4ba6ed9
14 changed files with 4 additions and 57 deletions
-1
View File
@@ -1752,7 +1752,6 @@ curl -X POST http://coder-server:8080/api/v2/workspaces/{workspace}/builds \
```json
{
"dry_run": true,
"enable_dynamic_parameters": true,
"log_level": "debug",
"orphan": true,
"rich_parameter_values": [
-4
View File
@@ -1917,7 +1917,6 @@ This is required on creation to enable a user-flow of validating a template work
```json
{
"dry_run": true,
"enable_dynamic_parameters": true,
"log_level": "debug",
"orphan": true,
"rich_parameter_values": [
@@ -1940,7 +1939,6 @@ This is required on creation to enable a user-flow of validating a template work
| Name | Type | Required | Restrictions | Description |
|------------------------------|-------------------------------------------------------------------------------|----------|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `dry_run` | boolean | false | | |
| `enable_dynamic_parameters` | boolean | false | | Enable dynamic parameters skips some of the static parameter checking. It will default to whatever the template has marked as the default experience. Requires the "dynamic-experiment" to be used. |
| `log_level` | [codersdk.ProvisionerLogLevel](#codersdkprovisionerloglevel) | false | | Log level changes the default logging verbosity of a provider ("info" if empty). |
| `orphan` | boolean | false | | Orphan may be set for the Destroy transition. |
| `rich_parameter_values` | array of [codersdk.WorkspaceBuildParameter](#codersdkworkspacebuildparameter) | false | | Rich parameter values are optional. It will write params to the 'workspace' scope. This will overwrite any existing parameters with the same name. This will not delete old params not included in this list. |
@@ -1982,7 +1980,6 @@ This is required on creation to enable a user-flow of validating a template work
{
"automatic_updates": "always",
"autostart_schedule": "string",
"enable_dynamic_parameters": true,
"name": "string",
"rich_parameter_values": [
{
@@ -2005,7 +2002,6 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|------------------------------|-------------------------------------------------------------------------------|----------|--------------|---------------------------------------------------------------------------------------------------------|
| `automatic_updates` | [codersdk.AutomaticUpdates](#codersdkautomaticupdates) | false | | |
| `autostart_schedule` | string | false | | |
| `enable_dynamic_parameters` | boolean | false | | |
| `name` | string | true | | |
| `rich_parameter_values` | array of [codersdk.WorkspaceBuildParameter](#codersdkworkspacebuildparameter) | false | | Rich parameter values allows for additional parameters to be provided during the initial provision. |
| `template_id` | string | false | | Template ID specifies which template should be used for creating the workspace. |
-2
View File
@@ -25,7 +25,6 @@ of the template will be used.
{
"automatic_updates": "always",
"autostart_schedule": "string",
"enable_dynamic_parameters": true,
"name": "string",
"rich_parameter_values": [
{
@@ -624,7 +623,6 @@ of the template will be used.
{
"automatic_updates": "always",
"autostart_schedule": "string",
"enable_dynamic_parameters": true,
"name": "string",
"rich_parameter_values": [
{