Skip to content

Use regular string sorting for custom access context manager ingress and egress flatteners #8675

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

The SortStringsByConfigOrder function fails when there are duplicate items in the array which is a problem since duplicates are allowed by the API. Instead, we are using a regular string sort on both arrays and comparing them, if they are equal, we return the config value so that Terraform sees the state as being unchanged. If the arrays aren't equal, return the API response.

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

accesscontextmanager: Fix permadiff in perimeter ingress / egress rules when there are duplicate resources in the rules

Derived from GoogleCloudPlatform/magic-modules#12288

…and egress flatteners (#12288)

Co-authored-by: Charlesleonius <[email protected]>

[upstream:0616a35f4dddbca1857fbc0c1330bc5ea93cc7e5]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit 82379f5 into hashicorp:main Nov 11, 2024
4 checks passed
@modular-magician modular-magician deleted the downstream-pr-0616a35f4dddbca1857fbc0c1330bc5ea93cc7e5 branch November 16, 2024 03:35
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.

1 participant