generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HCPF-704: Fix Missing/Incorrect Resource-level
project_id
Implement…
…ations (#522) * Fix `hcp_packer_channel` * Fix `hcp_azure_peering_connection` * Fix `hcp_hvn_route` * Fix `hcp_vault_cluster_admin_token` * Fix `hcp_consul_cluster_root_token` * Fix `hcp_boundary_cluster` * Fix `data.hcp_azure_peering_connection` * Fix `data.consul_agent_helm_config` * Align resources with code style for grabbing orgID * Add changelog * Elaborate in changelog * Remove unnecessary fields from hvn_peering_connection Squashed commit of the following: commit ba0cd45a6e7b2b51f439848c415890cfdabc823a Author: Aidan Mundy <[email protected]> Date: Mon Jun 5 20:50:23 2023 -0400 Final changes commit 18f6991 Author: Aidan Mundy <[email protected]> Date: Mon Jun 5 20:32:11 2023 -0400 Readd forcenew for resource commit fae8926 Author: Aidan Mundy <[email protected]> Date: Mon Jun 5 20:29:27 2023 -0400 Mark old fields as deprecated commit 14018b3 Author: Aidan Mundy <[email protected]> Date: Mon Jun 5 20:14:58 2023 -0400 Regen docs commit ca737a0 Author: Aidan Mundy <[email protected]> Date: Mon Jun 5 20:13:48 2023 -0400 Remove unnecessary HVN Peering fields * Deprecate `project_id` on `data.hvn_route` * Fix hvn_peering_connection data source test * Deprecate `project_id` for `hcp_hvn_route` resource * Update deprecation notice to include `hcp_hvn_route` * Fix typo * Fix docs for `data.hcp_hvn_peering_connection` Reflects deprecation of unused `hvn_2` attribute.
- Loading branch information
1 parent
f42ada2
commit 82fe9a7
Showing
20 changed files
with
249 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
```release-note:bug | ||
Fixed several missing/incorrect implementations for the resource-level | ||
`project_id` attribute that could lead to undefined or undesirable behavior on | ||
some resources and data sources when the `project_id` attribute had been used | ||
and its most recent value was different from the provider-level `project_id`, | ||
whether or not the attribute was still present in the configuration file. | ||
|
||
NOTE: See associated PR for caveats on temporary regressions. | ||
``` | ||
|
||
```release-note:deprecation | ||
Setting the `project_id` attribute on `hcp_hvn_peering_connection` and | ||
`data.hcp_hvn_peering_connection` is now deprecated. The value of the field was | ||
required to match the project ID for `hvn_1` and will now be determined | ||
automatically. Remove the `project_id` field from the configuration for | ||
affected resources and data sources. | ||
``` | ||
|
||
```release-note:deprecation | ||
Setting the `hvn_2` attribute of `data.hcp_hvn_peering_connection` is now | ||
deprecated. The value of the attribute is not needed to fetch data, and it was | ||
never validated against the real value for `hvn_2`. The value will now be | ||
populated automatically. Remove the `hvn_2` attribute from the configuration | ||
for affected data sources. | ||
``` | ||
|
||
```release-note:deprecation | ||
Setting the `project_id` attribute on `hcp_hvn_route` and `data.hcp_hvn_route` | ||
is now deprecated. The value of the field was required to match the project ID | ||
in `hvn_link` and will now be determined automatically. Remove the `project_id` | ||
field from the configuration for affected resources and data sources. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
examples/data-sources/hcp_hvn_peering_connection/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
data "hcp_hvn_peering_connection" "test" { | ||
peering_id = var.peering_id | ||
hvn_1 = var.hvn_1 | ||
hvn_2 = var.hvn_2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.