Skip to content

Add a custom diff function for org_policy rules to fix permadiff #9611

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

Conversation

modular-magician
Copy link
Collaborator

This is an attempt to fix the permadiff that can happen when a google_org_policy_policy contains multiple rules. Inspired by GoogleCloudPlatform/magic-modules#12190.

I initially tried to change Type.UnorderedList to support nested properties as a solution to this, but was unable to get that approach to work

Fixes: hashicorp/terraform-provider-google#12363

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

orgpolicy: fix permadiff in `google_org_policy_policy`  when multiple rules are present

Derived from GoogleCloudPlatform/magic-modules#13068

…068)

[upstream:733d7d1b8ff4a1dea7630caa225f62f45f7f92fd]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner March 21, 2025 18:18
@modular-magician modular-magician merged commit a0180c9 into hashicorp:main Mar 21, 2025
4 checks passed
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.

Permadiff on google_org_policy_policy resource
1 participant