feat(hyperdrive_config): add v4 to v5 migration support#317
Open
ssicard wants to merge 1 commit into
Open
Conversation
Add tf-migrate support for cloudflare_hyperdrive_config resource. The resource name and all user-configurable attributes are identical between v4 and v5, so the config transformation is a pass-through. V5 adds new optional attributes (origin.service_id, origin_connection_limit, mtls) and new computed attributes (created_on, modified_on), but no existing attributes were renamed, removed, or restructured. The provider's StateUpgrader handles state migration. Changes: - Add hyperdrive_config migrator (config pass-through, no HCL changes) - Register in migration registry - Add unit tests (8 cases: basic, caching, access origin, variables, multiple resources, lifecycle, count, for_each) - Add integration testdata (input + expected) - Add e2e fixture requiring real Postgres DB - Wire Hyperdrive DB env vars through e2e runner (env, init, tfvars, module passthrough, variable declarations) following Crowdstrike pattern - Add Hyperdrive secrets to e2e CI workflow
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.
Summary
Add tf-migrate support for
cloudflare_hyperdrive_configresource (APIX-1257).The resource name and all user-configurable attributes are identical between v4 and v5, so the config transformation is a pass-through. V5 adds new optional attributes (
origin.service_id,origin_connection_limit,mtls) and new computed attributes (created_on,modified_on), but no existing attributes were renamed, removed, or restructured. The provider's StateUpgrader handles state migration automatically.Test Results