TPT-4293: terraform: Implement linode_reserved_ip_types data source#2322
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Terraform Plugin Framework data source linode_reserved_ip_types intended to surface pricing/type information for reserved IPv4 addresses from the Linode API.
Changes:
- Introduces the reserved IP types data source implementation (schema, models, read/list logic).
- Adds acceptance-test template scaffolding for the data source.
- Adds an integration test for basic state shape/values.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| linode/reservediptypes/framework_datasource.go | Implements the linode_reserved_ip_types data source read path and API listing function. |
| linode/reservediptypes/framework_datasource_schema.go | Defines schema (filter/order + returned types list with pricing fields). |
| linode/reservediptypes/framework_models.go | Adds TF framework models and API-to-state flattening helpers. |
| linode/reservediptypes/tmpl/template.go | Adds acceptance template helper for building test config. |
| linode/reservediptypes/tmpl/data_basic.gotf | Adds the basic .gotf template for the new data source. |
| linode/reservediptypes/datasource_test.go | Adds an integration test verifying expected state fields. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
dawiddzhafarov
left a comment
There was a problem hiding this comment.
Also, documentation is missing for this new DS
mawilk90
reviewed
May 8, 2026
…ement-linode_reserved_ip_types-data-source
…ement-linode_reserved_ip_types-data-source
mawilk90
approved these changes
May 8, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Implement a new Terraform data source linode_reserved_ip_types that returns pricing and type information for reserved IPv4 addresses. This endpoint is publicly accessible and does not require authentication.
✔️ How to Test