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

Suppress private_endpoint_subnetwork when master_ipv4_cidr_block is set #17687

Conversation

modular-magician
Copy link
Collaborator

For private flexible clusters, user are still allowed to set master_ipv4_cidr_block. In this situation, private_endpoint_subnetwork will return a non-empty subnet name, which doesn't match the empty subnet in Terraform config (user can set either cidr block or subnet, or neither, but not both, which is error-checked by API). We should ignore the subnet diff in this case. This PR is intended to fix the same issue #10089 attempted to fix. #10089 was reverted by #10096.

Release Note Template for Downstream PRs (will be copied)

container: fixed `google_container_cluster` permadiff when `master_ipv4_cidr_block` is set for a private flexible cluster

Derived from GoogleCloudPlatform/magic-modules#10101

…et (hashicorp#10101)

* Suppress private_endpoint_subnetwork when master_ipv4_cidr_block is set

* acceptance test: Suppress private_endpoint_subnetwork when master_ipv4_cidr_block is set

Signed-off-by: Francis Liu <[email protected]>

---------

Signed-off-by: Francis Liu <[email protected]>

[upstream:e6dbde8e5cde48677a57ce0667090ccd799cb29b]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit c58f881 into hashicorp:main Mar 26, 2024
4 checks passed
Copy link

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 issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 26, 2024
@modular-magician modular-magician deleted the downstream-pr-e6dbde8e5cde48677a57ce0667090ccd799cb29b branch November 17, 2024 01:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant