Skip to content

Commit

Permalink
Reverse some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arybolovlev committed Aug 20, 2024
1 parent 1253f22 commit cfcbae5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha2/workspace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/app.terraform.io_workspaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ _Appears in:_
| `organization` _string_ | Organization name where the Workspace will be created.<br />More information:<br /> - 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).<br />Must be one of the following values: `auto`, `manual`.<br />Default: `manual`.<br />More information:<br /> - 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.<br />Default: `false`.<br />More information:<br /> - https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings#destruction-and-deletion |
| `allowDestroyPlan` _boolean_ | Allows a destroy plan to be created and applied.<br />Default: `true`.<br />More information:<br /> - 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.<br />More information:<br /> - https://developer.hashicorp.com/terraform/cloud-docs/agents |
| `executionMode` _string_ | Define where the Terraform code will be executed.<br />Must be one of the following values: `agent`, `local`, `remote`.<br />Default: `remote`.<br />More information:<br /> - https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings#execution-mode |
Expand Down

0 comments on commit cfcbae5

Please sign in to comment.