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

Fix perma-diff in google_container_cluster when cluster_dns_scope is unspecified #21637

Conversation

modular-magician
Copy link
Collaborator

Terraform defaults this field to DNS_SCOPE_UNSPECIFIED, but the API
corrects this to an empty value.

Following https://googlecloudplatform.github.io/magic-modules/develop/diffs/#default_if_empty
to tackle this issue.

To make writing DNS tests faster, I refactored the helper function testAccContainerCluster_autopilot_withDNSConfig I added previously into testAccContainerCluster_withAdvancedDNSConfig.

Fixes #20285

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

container: fixed perma-diff in `google_container_cluster` when `cluster_dns_scope` is unspecified

Derived from GoogleCloudPlatform/magic-modules#13150

… is unspecified (hashicorp#13150)

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

[upstream:f7a4eb8bf938b94d89460cd666ce48e0130b5f98]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner February 27, 2025 18:45
@modular-magician modular-magician merged commit f9fb30c into hashicorp:main Feb 27, 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.

google_container_clusterdns_config.cluster_dns_scope is always detected as an update
1 participant