Skip to content

Commit

Permalink
Merge pull request #551 from spacelift-io/CU-862jx0n8q_Remove-legacy-…
Browse files Browse the repository at this point in the history
…space-for-new-accounts_Jakub-Wjtowicz

Updated docs to consider legacy space not being present
  • Loading branch information
sephriot authored May 17, 2024
2 parents 8a90a60 + 91910b8 commit 306b856
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
4 changes: 0 additions & 4 deletions docs/resources/idp_group_mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ resource "spacelift_idp_group_mapping" "test" {
space_id = "root"
role = "ADMIN"
}
policy {
space_id = "legacy"
role = "ADMIN"
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ resource "spacelift_stack" "terragrunt-stack" {
- `runner_image` (String) Name of the Docker image used to process Runs
- `showcase` (Block List, Max: 1) (see [below for nested schema](#nestedblock--showcase))
- `slug` (String) Allows setting the custom ID (slug) for the stack
- `space_id` (String) ID (slug) of the space the stack is in. Defaults to `legacy`.
- `space_id` (String) ID (slug) of the space the stack is in. Defaults to `legacy` if it exists, otherwise `root`.
- `terraform_external_state_access` (Boolean) Indicates whether you can access the Stack state file from other stacks or outside of Spacelift. Defaults to `false`.
- `terraform_smart_sanitization` (Boolean) Indicates whether runs on this will use terraform's sensitive value system to sanitize the outputs of Terraform state and plans in spacelift instead of sanitizing all fields. Note: Requires the terraform version to be v1.0.1 or above. Defaults to `false`.
- `terraform_version` (String) Terraform version to use
Expand Down
4 changes: 0 additions & 4 deletions examples/resources/spacelift_idp_group_mapping/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ resource "spacelift_idp_group_mapping" "test" {
space_id = "root"
role = "ADMIN"
}
policy {
space_id = "legacy"
role = "ADMIN"
}
}
2 changes: 1 addition & 1 deletion spacelift/data_spaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TestSpacesData(t *testing.T) {
datasourceName := "data.spacelift_spaces.test"

testSteps(t, []resource.TestStep{{
// Should find at least the legacy and root spaces.
// Should find at least root space.
Config: `
data "spacelift_spaces" "test" {
}
Expand Down
2 changes: 1 addition & 1 deletion spacelift/resource_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ func resourceStack() *schema.Resource {
},
"space_id": {
Type: schema.TypeString,
Description: "ID (slug) of the space the stack is in. Defaults to `legacy`.",
Description: "ID (slug) of the space the stack is in. Defaults to `legacy` if it exists, otherwise `root`.",
Optional: true,
Computed: true,
},
Expand Down

0 comments on commit 306b856

Please sign in to comment.