Skip to content

Commit

Permalink
Ignore dns_config changes for Autopilot clusters (GoogleCloudPlatform…
Browse files Browse the repository at this point in the history
…#8654)

Autopilot does not allow to modify dns_config.

Recently, in Autopilot the default dns_config has changed to be:
```
dns_config {
    cluster_dns        = "CLOUD_DNS"
    cluster_dns_domain = "cluster.local"
    cluster_dns_scope  = "CLUSTER_SCOPE"
  }
```

This breaks Autopilot customers as the terraform tries to converge dns_config back to null.
  • Loading branch information
dpasiukevich authored and joelkattapuram committed Sep 20, 2023
1 parent c964aa6 commit e01bc63
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1976,6 +1976,7 @@ func ResourceContainerCluster() *schema.Resource {
Optional: true,
MaxItems: 1,
ForceNew: true,
DiffSuppressFunc: suppressDiffForAutopilot,
Description: `Configuration for Cloud DNS for Kubernetes Engine.`,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down

0 comments on commit e01bc63

Please sign in to comment.