diff --git a/api/v1alpha2/workspace_types.go b/api/v1alpha2/workspace_types.go
index cd39f641..48d74bd4 100644
--- a/api/v1alpha2/workspace_types.go
+++ b/api/v1alpha2/workspace_types.go
@@ -451,11 +451,11 @@ type WorkspaceSpec struct {
//+optional
ApplyMethod string `json:"applyMethod,omitempty"`
// Allows a destroy plan to be created and applied.
- // Default: `false`.
+ // Default: `true`.
// More information:
// - https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings#destruction-and-deletion
//
- //+kubebuilder:default=false
+ //+kubebuilder:default=true
//+optional
AllowDestroyPlan bool `json:"allowDestroyPlan"`
// Workspace description.
diff --git a/charts/hcp-terraform-operator/crds/app.terraform.io_workspaces.yaml b/charts/hcp-terraform-operator/crds/app.terraform.io_workspaces.yaml
index f6b06ad8..dc32f5e9 100644
--- a/charts/hcp-terraform-operator/crds/app.terraform.io_workspaces.yaml
+++ b/charts/hcp-terraform-operator/crds/app.terraform.io_workspaces.yaml
@@ -64,10 +64,10 @@ spec:
type: string
type: object
allowDestroyPlan:
- default: false
+ default: true
description: |-
Allows a destroy plan to be created and applied.
- Default: `false`.
+ Default: `true`.
More information:
- https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings#destruction-and-deletion
type: boolean
diff --git a/config/crd/bases/app.terraform.io_workspaces.yaml b/config/crd/bases/app.terraform.io_workspaces.yaml
index 02ef0bab..bd1d9fcb 100644
--- a/config/crd/bases/app.terraform.io_workspaces.yaml
+++ b/config/crd/bases/app.terraform.io_workspaces.yaml
@@ -61,10 +61,10 @@ spec:
type: string
type: object
allowDestroyPlan:
- default: false
+ default: true
description: |-
Allows a destroy plan to be created and applied.
- Default: `false`.
+ Default: `true`.
More information:
- https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings#destruction-and-deletion
type: boolean
diff --git a/docs/api-reference.md b/docs/api-reference.md
index 822bf0f8..c8a7bcc7 100644
--- a/docs/api-reference.md
+++ b/docs/api-reference.md
@@ -805,7 +805,7 @@ _Appears in:_
| `organization` _string_ | Organization name where the Workspace will be created.
More information:
- https://developer.hashicorp.com/terraform/cloud-docs/users-teams-organizations/organizations |
| `token` _[Token](#token)_ | API Token to be used for API calls. |
| `applyMethod` _string_ | Define either change will be applied automatically(auto) or require an operator to confirm(manual).
Must be one of the following values: `auto`, `manual`.
Default: `manual`.
More information:
- https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings#auto-apply-and-manual-apply |
-| `allowDestroyPlan` _boolean_ | Allows a destroy plan to be created and applied.
Default: `false`.
More information:
- https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings#destruction-and-deletion |
+| `allowDestroyPlan` _boolean_ | Allows a destroy plan to be created and applied.
Default: `true`.
More information:
- https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings#destruction-and-deletion |
| `description` _string_ | Workspace description. |
| `agentPool` _[WorkspaceAgentPool](#workspaceagentpool)_ | HCP Terraform Agents allow HCP Terraform to communicate with isolated, private, or on-premises infrastructure.
More information:
- https://developer.hashicorp.com/terraform/cloud-docs/agents |
| `executionMode` _string_ | Define where the Terraform code will be executed.
Must be one of the following values: `agent`, `local`, `remote`.
Default: `remote`.
More information:
- https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings#execution-mode |