Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite7a4b02

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 parenta22ccaa commite7a4b02

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

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

Lines changed: 6 additions & 5 deletions
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 sourcesandtheir properties:
7+
Version 2 of the Coder provider for Terraform is a major release that removes the following deprecated data sources, argumentsandattributes:
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/coder/terraform-provider-coder
22

33
go1.22
44

5-
toolchaingo1.22.3
5+
toolchaingo1.22.9
66

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

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

Lines changed: 6 additions & 5 deletions
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 sourcesandtheir properties:
7+
Version 2 of the Coder provider for Terraform is a major release that removes the following deprecated data sources, argumentsandattributes:
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)

[8]ページ先頭

©2009-2025 Movatter.jp