Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packerv2: warn of hcp_packer_image depreciation #735

Merged
merged 3 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .changelog/726.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
Refer to the `version_fingerprint` attribute release notes for more information.
```

```release-note:deprecation
`data.hcp_packer_image`: This data source will be removed in a future release, and is superseded by `data.hcp_packer_artifact`
```

```release-note:deprecation
`data.hcp_packer_iteration`: This data source will be removed in a future release, and is superseded by `data.hcp_packer_version`
```
Expand Down
3 changes: 3 additions & 0 deletions .changelog/735.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:deprecation
`data.hcp_packer_image`: This data source will be removed in a future release, and is superseded by `data.hcp_packer_artifact`
```
5 changes: 3 additions & 2 deletions internal/providersdkv2/data_source_packer_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ var defaultPackerTimeout = time.Minute

func dataSourcePackerImage() *schema.Resource {
return &schema.Resource{
Description: "The Packer Image data source gets an image associated with an iteration, either from a specific iteration or from the iteration assigned to a given Channel.",
ReadContext: dataSourcePackerImageRead,
DeprecationMessage: "This data source has been deprecated. Use the new `hcp_packer_artifact` data source instead.",
Description: "The Packer Image data source gets an image associated with an iteration, either from a specific iteration or from the iteration assigned to a given Channel.",
ReadContext: dataSourcePackerImageRead,
Timeouts: &schema.ResourceTimeout{
Default: &defaultPackerTimeout,
},
Expand Down
Loading