Conversation
14 tasks
12abff8 to
f40d450
Compare
f40d450 to
26183ee
Compare
26183ee to
c939d3f
Compare
c939d3f to
3c25e1a
Compare
Member
Author
…nger removes from state when a failover occurs
3c25e1a to
0944e0d
Compare
sreallymatt
requested changes
May 1, 2025
Collaborator
sreallymatt
left a comment
There was a problem hiding this comment.
I've left 2 minor comments inline, other than that I think this looks good
internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource.go
Show resolved
Hide resolved
website/docs/r/postgresql_flexible_server_virtual_endpoint.html.markdown
Show resolved
Hide resolved
mbfrahry
added a commit
that referenced
this pull request
May 1, 2025
14 tasks
teowa
pushed a commit
to teowa/terraform-provider-azurerm
that referenced
this pull request
May 8, 2025
…removed from state when a fail-over occurs (hashicorp#29424)
jackofallops
added a commit
that referenced
this pull request
May 9, 2025
* changelog for 4.28 release * Update CHANGELOG.md #29410 * Update CHANGELOG.md #29397 * Update CHANGELOG.md #27454 * Update CHANGELOG.md #28919 * Update CHANGELOG.md #29443 * Update CHANGELOG.md #29443 * Update CHANGELOG.md #29456 * Update CHANGELOG.md for #29424 * Update CHANGELOG.md for #29150 * Update CHANGELOG.md #29435 * Update CHANGELOG.md #29431 * Update CHANGELOG.md #29396 * Update CHANGELOG.md #29197 * Update CHANGELOG.md for #28705 * Update CHANGELOG.md #28954 * Update CHANGELOG.md for #29363 * prep for release --------- Co-authored-by: catriona-m <86247157+catriona-m@users.noreply.github.com> Co-authored-by: Wodans Son <20408400+WodansSon@users.noreply.github.com> Co-authored-by: sreallymatt <106555974+sreallymatt@users.noreply.github.com> Co-authored-by: Matthew Frahry <mbfrahry@gmail.com> Co-authored-by: jackofallops <ste@hashicorp.com>
Contributor
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

Community Note
Description
This PR fixes #27796 where the resource is removed from state when a fail-over occurs. Instead of removing from state, we'll check to see if the resource exists under the replica server id. If it does, we hide the fact that a fail-over occurred. We've had to update the id of the resource to account for that and we've had to prevent the ability of the
replica_server_idfrom being changed if a fail-over occurred due to the myriad of edge cases we'd need to account for.PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_postgresql_flexible_server_virtual_endpoint- is no longer removed from state when a fail-over occurs[GH-00000]This is a (please select all that apply):
Related Issue(s)
Fixes #27796
Note
If this PR changes meaningfully during the course of review please update the title and description as required.