Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make allowedPersistenceRegions optional in messageStoragePolicy for google_pubsub_topic. #12403

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shunsuke-tsumori
Copy link

@shunsuke-tsumori shunsuke-tsumori commented Nov 22, 2024

closes hashicorp/terraform-provider-google#20431

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

pubsub: fixed perma-diff in `google_pubsub_topic`

Copy link

google-cla bot commented Nov 22, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Nov 22, 2024
@shunsuke-tsumori shunsuke-tsumori force-pushed the fix/google_pubsub_topic-optional-message_storage_policy branch from 05cc615 to 2354d60 Compare November 22, 2024 17:53
@shunsuke-tsumori shunsuke-tsumori marked this pull request as ready for review November 22, 2024 18:00
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@c2thorn, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@@ -126,7 +126,7 @@ properties:
of GCP altogether) will be routed for storage in one of the
allowed regions. An empty list means that no regions are allowed,
and is not a valid configuration.
required: true
Copy link
Member

Choose a reason for hiding this comment

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

I'm not seeing how this solves hashicorp/terraform-provider-google#20431

The original debug log shows no required validation message for this field


updatedConfig := `
resource "google_pubsub_topic" "usage-metrics" {
name = "topic-name"
Copy link
Member

Choose a reason for hiding this comment

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

this isn't actually testing the change on allowedPersistenceRegions, this is testing removing message_storage_policy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Removing pubsub topic allowed persistence regions does not update topic
3 participants