mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: remove experiment "terraform-directory-reuse" (#21397)
Experiment is no longer required, the new method will be released without an experiment and without a toggle Main PR is: https://github.com/coder/coder/pull/21398
This commit is contained in:
@@ -3850,8 +3850,6 @@ const (
|
||||
ExperimentOAuth2 Experiment = "oauth2" // Enables OAuth2 provider functionality.
|
||||
ExperimentMCPServerHTTP Experiment = "mcp-server-http" // Enables the MCP HTTP server functionality.
|
||||
ExperimentWorkspaceSharing Experiment = "workspace-sharing" // Enables updating workspace ACLs for sharing with users and groups.
|
||||
// ExperimentTerraformWorkspace uses the "Terraform Workspaces" feature, not to be confused with Coder Workspaces.
|
||||
ExperimentTerraformWorkspace Experiment = "terraform-directory-reuse" // Enables reuse of existing terraform directory for builds
|
||||
)
|
||||
|
||||
func (e Experiment) DisplayName() string {
|
||||
@@ -3872,8 +3870,6 @@ func (e Experiment) DisplayName() string {
|
||||
return "MCP HTTP Server Functionality"
|
||||
case ExperimentWorkspaceSharing:
|
||||
return "Workspace Sharing"
|
||||
case ExperimentTerraformWorkspace:
|
||||
return "Terraform Directory Reuse"
|
||||
default:
|
||||
// Split on hyphen and convert to title case
|
||||
// e.g. "web-push" -> "Web Push", "mcp-server-http" -> "Mcp Server Http"
|
||||
|
||||
@@ -63,8 +63,7 @@ type Template struct {
|
||||
MaxPortShareLevel WorkspaceAgentPortShareLevel `json:"max_port_share_level"`
|
||||
CORSBehavior CORSBehavior `json:"cors_behavior"`
|
||||
|
||||
UseClassicParameterFlow bool `json:"use_classic_parameter_flow"`
|
||||
UseTerraformWorkspaceCache bool `json:"use_terraform_workspace_cache"`
|
||||
UseClassicParameterFlow bool `json:"use_classic_parameter_flow"`
|
||||
}
|
||||
|
||||
// WeekdaysToBitmap converts a list of weekdays to a bitmap in accordance with
|
||||
@@ -264,11 +263,6 @@ type UpdateTemplateMeta struct {
|
||||
// made the default.
|
||||
// An "opt-out" is present in case the new feature breaks some existing templates.
|
||||
UseClassicParameterFlow *bool `json:"use_classic_parameter_flow,omitempty"`
|
||||
// UseTerraformWorkspaceCache 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.
|
||||
UseTerraformWorkspaceCache *bool `json:"use_terraform_workspace_cache,omitempty"`
|
||||
}
|
||||
|
||||
type TemplateExample struct {
|
||||
|
||||
Reference in New Issue
Block a user