Skip to content

Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.33.0 to 2.35.0 #30

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 4, 2024

Bumps github.com/hashicorp/terraform-plugin-sdk/v2 from 2.33.0 to 2.35.0.

Release notes

Sourced from github.com/hashicorp/terraform-plugin-sdk/v2's releases.

v2.35.0

NOTES:

  • all: This Go module has been updated to Go 1.22 per the Go support policy. It is recommended to review the Go 1.22 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#1373)
  • helper/schema: While this Go module will not receive support for ephemeral resource types, the provider server is updated to handle the new operations, which will be required to prevent errors when updating terraform-plugin-framework or terraform-plugin-mux in the future. (#1390)

v2.34.0

NOTES:

  • all: The v2.33.0 release updated this Go module to Go 1.21 per the Go support policy. It is recommended to review the Go 1.21 release notes before upgrading. Any consumers building on earlier Go versions may experience errors (#1318)
  • This release contains support for deferred actions, which is an experimental feature only available in prerelease builds of Terraform 1.9 and later. This functionality is subject to change and is not protected by version compatibility guarantees. (#1335)

FEATURES:

  • helper/schema: Added (Provider).ConfigureProvider function for configuring providers that support additional features, such as deferred actions. (#1335)
  • helper/schema: Added (Resource).ResourceBehavior to allow additional control over deferred action behavior during plan modification. (#1335)
Changelog

Sourced from github.com/hashicorp/terraform-plugin-sdk/v2's changelog.

2.35.0 (October 31, 2024)

NOTES:

  • all: This Go module has been updated to Go 1.22 per the Go support policy. It is recommended to review the Go 1.22 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#1373)
  • helper/schema: While this Go module will not receive support for ephemeral resource types, the provider server is updated to handle the new operations, which will be required to prevent errors when updating terraform-plugin-framework or terraform-plugin-mux in the future. (#1390)

2.34.0 (May 17, 2024)

NOTES:

  • all: The v2.33.0 release updated this Go module to Go 1.21 per the Go support policy. It is recommended to review the Go 1.21 release notes before upgrading. Any consumers building on earlier Go versions may experience errors (#1318)
  • This release contains support for deferred actions, which is an experimental feature only available in prerelease builds of Terraform 1.9 and later. This functionality is subject to change and is not protected by version compatibility guarantees. (#1335)

FEATURES:

  • helper/schema: Added (Provider).ConfigureProvider function for configuring providers that support additional features, such as deferred actions. (#1335)
  • helper/schema: Added (Resource).ResourceBehavior to allow additional control over deferred action behavior during plan modification. (#1335)
Commits
  • da29621 Update changelog
  • 0569613 Update meta package SDKVersion
  • 23a11cf all: Initial ephemeral resource implementation (#1390)
  • 24fa92a build(deps): bump github.com/hashicorp/terraform-json (#1388)
  • 0875f54 build(deps): bump github.com/hashicorp/terraform-plugin-go (#1389)
  • 64f0922 Result of tsccr-helper -log-level=info gha update -latest . (#1387)
  • 71a8bde Result of tsccr-helper -log-level=info gha update -latest . (#1385)
  • dd6c100 Result of tsccr-helper -log-level=info gha update -latest . (#1381)
  • 5efee53 build(deps): bump golang.org/x/crypto from 0.27.0 to 0.28.0 (#1382)
  • b454e07 Fix typos (#1380)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.33.0 to 2.35.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-sdk@v2.33.0...v2.35.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 4, 2024
austin-denoble added a commit that referenced this pull request Apr 19, 2025
…ps (#39)

## Problem
It has been a long while since we've updated the terraform provider, and
the [go-pinecone](https://github.com/pinecone-io/go-pinecone) client the
provider depends on has seen several major version bumps since then.

There are a number of new index features the provider does not currently
support:
- Deletion protection
- Index tags
- Sparse / Dense indexes
- Integrated inference

There are also a number of other dependencies that could use updating,
as dependabot has dutifully let us know:
- #30
- #31
- #33
- #35
- #36
- #37

## Solution
- Bump go-pinecone to the latest version: v3.1.0
- Bump various dependencies around the terraform-plugin-framework and go
(see the list above).
- Update index resource and data source schemas to support new index
configurations: `deletion_protection`, `tags`, `embed`, and
`vector_type`.
- Previously, the `IndexResource` `Update` method was basically a noop,
this has now been updated to support updating index tags,
deletion_protection, and embed properties. Check out the `Update` method
in `index_resource.go` for specifics on how this is handled.
- The `IndexResource` `Create` method also has a lot of changes to
support creating various index types.
- The schemas for both `IndexDataSource` and `IndexResource` have been
updated to include all of the new index configuration fields. For
context: in terraform a "resource" is the managed thing you're creating
/ updating, and a data source is a "read only" representation of that
thing.
- I've done an overhaul on how we're testing some things in
`index_resource_test.go`, and a few other places. This was primarily to
cover certain error cases and the full flow from create -> update ->
destroy for indexes.
- Collections are unchanged in this update.

## Type of Change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [X] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update
- [ ] Infrastructure change (CI configs, etc)
- [ ] Non-code change (docs, etc)
- [ ] None of the above: (explain here)

## Test Plan
You'll need to install the terraform CLI locally. Easiest way is
probably through brew:

```sh
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
terraform -version
```

After installing terraform, find your `~/.terraformrc` file, clone this
repo, and add a dev override for wherever you've built the provider
binary locally. It should look something like this:

```
provider_installation {
	dev_overrides {
		"pinecone-io/pinecone" = "/Users/austin/workspace/terraform-provider-pinecone"
	}

  # For all other providers, install them directly from their origin provider
  # registries as normal. If you omit this, Terraform will _only_ use
  # the dev_overrides block, and so no other providers will be available.
  direct {}
}
```

Create a folder for testing the locally built provider from the cloned
repo, and add a new hcl file (something like `main.tf`):

```sh
mkdir pinecone-terraform-test
cd pinecone-terraform-test
touch main.tf
```

Update the `main.tf` file with your desired configuration. For example,
here's a serverless integrated index:

```tf
terraform {
  required_providers {
    pinecone = {
      source = "pinecone-io/pinecone"
    }
  }
}

provider "pinecone" {
}

resource "pinecone_index" "testsls" {
  name = "tftestslsindex22"
  deletion_protection = "disabled"
  metric = "cosine"
  spec = {
    serverless = {
      cloud = "aws"
      region = "us-west-2"
    }
  }
  tags = {
    test = "test1"
    blah = "foo"
  }
  embed = {
    model = "multilingual-e5-large"
    field_map = {
      text = "chunk_text"
    }
  }
}
```
Once you've updated your `main.tf` file, you can run the following:

```sh
# generally only need to init the first time with a new tf file
terraform init 
# plan will give you a preview of the resource you're about to create or update
terraform plan 
# apply will actually create or update the thing
terraform apply
```

From there you can make changes to the resource, or add new resources to
the configuration file and rerun `terraform plan / terraform apply`. Use
the Pinecone console to validate the external resource is created and
updated as expected.

---
- To see the specific tasks where the Asana app for GitHub is being
used, see below:
  - https://app.asana.com/0/0/1208748187516169
@austin-denoble
Copy link
Contributor

implemented in: #39

Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 19, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/go_modules/github.com/hashicorp/terraform-plugin-sdk/v2-2.35.0 branch April 19, 2025 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant