Skip to content

Commit e7a4b02

Browse files
committed
docs: Update migration guide and go toolchain
- Update the migration guide from v1 to v2 to reflect the final version numbers. - Change the go.mod toolchain version to 1.22.9. - Execute `make gen` to regenerate documentation.
1 parent a22ccaa commit e7a4b02

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

docs/guides/v1-to-v2-migration.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@ page_title: "Migrate from v1 to v2"
44

55
# Migrate from v1 to v2
66

7-
Version 2.0.0 of the Coder provider for Terraform is a major release that removes the following deprecated data sources and their properties:
7+
Version 2 of the Coder provider for Terraform is a major release that removes the following deprecated data sources, arguments and attributes:
88

99
- `coder_git_auth` data source
1010
- All owner properties from the [`coder_workspace`](../docs/data-sources/workspace.md) data source
11+
- `feature_use_managed_variables` attribute from the `provider` block
1112

1213
## Migrating `coder_git_auth` data source
1314

1415
If you are using this data source, you must replace it with the [`coder_external_auth`](../docs/data-sources/external-auth.md) data source. The `coder_external_auth` data source is a more generic data source that can be used to create any external authentication provider.
1516

16-
### v1.0.0
17+
### v1
1718
```terraform
18-
1919
data "coder_git_auth" "example" {
2020
id = "example"
2121
}
2222
```
23-
### v2.0.0
23+
24+
### v2
2425
```terraform
2526
data "coder_external_auth" "example" {
2627
id = "example"
@@ -32,7 +33,7 @@ data "coder_external_auth" "example" {
3233

3334
If you are using the `owner` properties of the `coder_workspace` data source, you must remove them and use the `coder_workspace_owner` data source instead. The `coder_workspace_owner` data source is a more generic data source that provide additional properties of the workspace owner.
3435

35-
| `v1.0.0` | `v2.0.0` |
36+
| `v1` | `v2` |
3637
|-----------|----------|
3738
| `data.coder_workspace.me.owner_id` | `data.coder_workspace_owner.me.id` |
3839
| `data.coder_workspace.me.owner` | `data.coder_workspace_owner.me.name` |

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/coder/terraform-provider-coder
22

33
go 1.22
44

5-
toolchain go1.22.3
5+
toolchain go1.22.9
66

77
require (
88
github.com/docker/docker v26.1.5+incompatible

templates/guides/v1-to-v2-migration.md.tmpl

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@ page_title: "Migrate from v1 to v2"
44

55
# Migrate from v1 to v2
66

7-
Version 2.0.0 of the Coder provider for Terraform is a major release that removes the following deprecated data sources and their properties:
7+
Version 2 of the Coder provider for Terraform is a major release that removes the following deprecated data sources, arguments and attributes:
88

99
- `coder_git_auth` data source
1010
- All owner properties from the [`coder_workspace`](../docs/data-sources/workspace.md) data source
11+
- `feature_use_managed_variables` attribute from the `provider` block
1112

1213
## Migrating `coder_git_auth` data source
1314

1415
If you are using this data source, you must replace it with the [`coder_external_auth`](../docs/data-sources/external-auth.md) data source. The `coder_external_auth` data source is a more generic data source that can be used to create any external authentication provider.
1516

16-
### v1.0.0
17+
### v1
1718
```terraform
18-
1919
data "coder_git_auth" "example" {
2020
id = "example"
2121
}
2222
```
23-
### v2.0.0
23+
24+
### v2
2425
```terraform
2526
data "coder_external_auth" "example" {
2627
id = "example"
@@ -32,7 +33,7 @@ data "coder_external_auth" "example" {
3233

3334
If you are using the `owner` properties of the `coder_workspace` data source, you must remove them and use the `coder_workspace_owner` data source instead. The `coder_workspace_owner` data source is a more generic data source that provide additional properties of the workspace owner.
3435

35-
| `v1.0.0` | `v2.0.0` |
36+
| `v1` | `v2` |
3637
|-----------|----------|
3738
| `data.coder_workspace.me.owner_id` | `data.coder_workspace_owner.me.id` |
3839
| `data.coder_workspace.me.owner` | `data.coder_workspace_owner.me.name` |

0 commit comments

Comments
 (0)