Skip to content

Commit

Permalink
Remove deprecated HCP Packer datasources and attributes (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviamoss authored Mar 20, 2024
1 parent 66eb69f commit 303cfdc
Show file tree
Hide file tree
Showing 19 changed files with 31 additions and 1,496 deletions.
11 changes: 11 additions & 0 deletions .changelog/791.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```release-note:breaking-change
Removed `hcp_packer_iteration` data source, previously deprecated and replaced by `hcp_packer_version` in [v0.82.0](https://github.com/hashicorp/terraform-provider-hcp/releases/tag/v0.82.0).
```

```release-note:breaking-change
Removed `hcp_packer_image` data source, previously deprecated and replaced by `hcp_packer_artifact` in [v0.82.0](https://github.com/hashicorp/terraform-provider-hcp/releases/tag/v0.82.0).
```

```release-note:breaking-change
Removed `iteration_fingerprint` attribute from `hcp_packer_channel_assignment` resource, previously deprecated and replaced by `version_fingerprint` in [v0.82.0](https://github.com/hashicorp/terraform-provider-hcp/releases/tag/v0.82.0).
```
49 changes: 0 additions & 49 deletions docs/data-sources/packer_image.md

This file was deleted.

45 changes: 0 additions & 45 deletions docs/data-sources/packer_iteration.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/resources/packer_channel_assignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ resource "hcp_packer_channel_assignment" "staging" {

### Optional

- `iteration_fingerprint` (String, Deprecated) The fingerprint of the version assigned to the channel.
- `project_id` (String) The ID of the HCP project where the channel is located.
If not specified, the project specified in the HCP Provider config block will be used, if configured.
If a project is not configured in the HCP Provider config block, the oldest project in the organization will be used.
Expand Down
74 changes: 0 additions & 74 deletions internal/clients/packerv1/packer.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ type HasBlockName interface {
//
// Example:
// `hcp_packer_channel.prod` (a resource) or
// `data.hcp_packer_iteration.latest` (a data source)
// `data.hcp_packer_version.latest` (a data source)
BlockName() string
}

Expand Down
3 changes: 3 additions & 0 deletions internal/providersdkv2/data_source_packer_bucket_names.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package providersdkv2
import (
"context"
"log"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand All @@ -14,6 +15,8 @@ import (
"github.com/hashicorp/terraform-provider-hcp/internal/clients/packerv2"
)

var defaultPackerTimeout = time.Minute

func dataSourcePackerBucketNames() *schema.Resource {
return &schema.Resource{
Description: "The Packer Bucket Names data source gets the names of all of the buckets in a single HCP Packer registry.",
Expand Down
Loading

0 comments on commit 303cfdc

Please sign in to comment.