Skip to content

resource(vpc_firewall_rules): support new api changes#474

Merged
sudomateo merged 1 commit into
mainfrom
sudomateo/wwnpykqrwmws
Jul 24, 2025
Merged

resource(vpc_firewall_rules): support new api changes#474
sudomateo merged 1 commit into
mainfrom
sudomateo/wwnpykqrwmws

Conversation

@sudomateo

Copy link
Copy Markdown
Collaborator

Pulled in the Go SDK changes from
oxidecomputer/oxide.go#304 which contained changes to the VPC firewall rules APIs.

Updated the oxide_vpc_firewall_rules resource to account for these changes.

Comment thread internal/provider/resource_vpc_firewall_rules.go Outdated
@sudomateo
sudomateo force-pushed the sudomateo/wwnpykqrwmws branch from d03b790 to c6c7ca5 Compare July 24, 2025 02:44
@sudomateo

Copy link
Copy Markdown
Collaborator Author
> TEST_ACC_NAME=TestAccCloudResourceFirewallRules_full make testacc
-> Running terraform acceptance tests
=== RUN   TestAccCloudResourceFirewallRules_full
=== PAUSE TestAccCloudResourceFirewallRules_full
=== CONT  TestAccCloudResourceFirewallRules_full
--- PASS: TestAccCloudResourceFirewallRules_full (13.73s)
PASS
ok      github.com/oxidecomputer/terraform-provider-oxide/internal/provider     13.737s

@sudomateo
sudomateo marked this pull request as ready for review July 24, 2025 02:45
@sudomateo
sudomateo requested a review from karencfv as a code owner July 24, 2025 02:45

@karencfv karencfv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is excellent, thanks a bunch! Just a couple of minor things, but I'll leave it approved so you don't have to wait some hours for me to take a look again.

Comment thread .changelog/0.13.0.toml Outdated
Comment thread internal/provider/resource_vpc_firewall_rules_test.go
Pulled in the Go SDK changes from
oxidecomputer/oxide.go#304 which contained
changes to the VPC firewall rules APIs.

Updated the `oxide_vpc_firewall_rules` resource to account for these
changes.
@sudomateo
sudomateo force-pushed the sudomateo/wwnpykqrwmws branch from c6c7ca5 to 1b30f94 Compare July 24, 2025 18:54
@sudomateo
sudomateo merged commit 4c73ad1 into main Jul 24, 2025
1 check passed
@sudomateo
sudomateo deleted the sudomateo/wwnpykqrwmws branch July 24, 2025 18:56
@sudomateo sudomateo linked an issue Jul 24, 2025 that may be closed by this pull request
lgfa29 added a commit that referenced this pull request Aug 27, 2025
Implement the `ResourceWithStateUpgrade` interface on
`vpcFirewallRulesResource` to support upgrading existing Terraform
states to the new schema implemented in #474.

One important note is that this does not allow users to use new versions
of the provider with previous versions of the Oxide API. It only updates
existing Terraform states to avoid errors when users upgrade their
clusters to a version that contains API changes.
lgfa29 added a commit that referenced this pull request Aug 27, 2025
Implement the `ResourceWithStateUpgrade` interface on
`vpcFirewallRulesResource` to support upgrading existing Terraform
states to the new schema implemented in #474.

One important note is that this does not allow users to use new versions
of the provider with previous versions of the Oxide API. It only updates
existing Terraform states to avoid errors when users upgrade their
clusters to a version that contains API changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle change in API for firewall rules

2 participants