Skip to content

Conversation

@rotem-cloud
Copy link
Collaborator

Add cloudflare_r2_bucket v4 to v5 migration

Implements migration for cloudflare_r2_bucket resource with state transformation to add v5 default values (jurisdiction="default", storage_class="Standard"). Config files pass through unchanged.

Files added:

  • internal/resources/r2_bucket/v4_to_v5.go
  • internal/resources/r2_bucket/v4_to_v5_test.go
  • integration/v4_to_v5/testdata/r2_bucket/

Tests:

  • 10 unit tests (5 config, 5 state transformation)
  • Integration tests with 6 bucket resources
  • All tests verify no plan changes after migration

Add cloudflare_r2_bucket v4 to v5 migration

Implements migration for cloudflare_r2_bucket resource with state transformation
to add v5 default values (jurisdiction="default", storage_class="Standard").
Config files pass through unchanged.

Files added:
- internal/resources/r2_bucket/v4_to_v5.go
- internal/resources/r2_bucket/v4_to_v5_test.go
- integration/v4_to_v5/testdata/r2_bucket/

Tests:
- 10 unit tests (5 config, 5 state transformation)
- Integration tests with 6 bucket resources
- All tests verify no plan changes after migration
@vaishakdinesh vaishakdinesh merged commit e51bf6b into main Nov 7, 2025
7 checks passed
@vaishakdinesh vaishakdinesh deleted the rotem/APIOPS-11455-cloudflare-r2-bucket branch November 7, 2025 23:51
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.

2 participants