Skip to content

Commit

Permalink
Update resource_container_cluster.go.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileHofsink authored Sep 18, 2024
1 parent 863df2f commit 1d6d87c
Showing 1 changed file with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2129,33 +2129,35 @@ func ResourceContainerCluster() *schema.Resource {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
DiffSuppressFunc: suppressDiffForAutopilot,
Description: `Configuration for Cloud DNS for Kubernetes Engine.`,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"additive_vpc_scope_dns_domain": {
Type: schema.TypeString,
Description: `Enable additive VPC scope DNS in a GKE cluster.`,
Optional: true,
Type: schema.TypeString,
Description: `Enable additive VPC scope DNS in a GKE cluster.`,
Optional: true,
},
"cluster_dns": {
Type: schema.TypeString,
Default: "PROVIDER_UNSPECIFIED",
ValidateFunc: validation.StringInSlice([]string{"PROVIDER_UNSPECIFIED", "PLATFORM_DEFAULT", "CLOUD_DNS"}, false),
Description: `Which in-cluster DNS provider should be used.`,
Optional: true,
Type: schema.TypeString,
Default: "PROVIDER_UNSPECIFIED",
ValidateFunc: validation.StringInSlice([]string{"PROVIDER_UNSPECIFIED", "PLATFORM_DEFAULT", "CLOUD_DNS"}, false),
DiffSuppressFunc: suppressDiffForAutopilot,
Description: `Which in-cluster DNS provider should be used.`,
Optional: true,
},
"cluster_dns_scope": {
Type: schema.TypeString,
Default: "DNS_SCOPE_UNSPECIFIED",
ValidateFunc: validation.StringInSlice([]string{"DNS_SCOPE_UNSPECIFIED", "CLUSTER_SCOPE", "VPC_SCOPE"}, false),
Description: `The scope of access to cluster DNS records.`,
Optional: true,
Type: schema.TypeString,
Default: "DNS_SCOPE_UNSPECIFIED",
ValidateFunc: validation.StringInSlice([]string{"DNS_SCOPE_UNSPECIFIED", "CLUSTER_SCOPE", "VPC_SCOPE"}, false),
DiffSuppressFunc: suppressDiffForAutopilot,
Description: `The scope of access to cluster DNS records.`,
Optional: true,
},
"cluster_dns_domain": {
Type: schema.TypeString,
Description: `The suffix used for all cluster service records.`,
Optional: true,
Type: schema.TypeString,
Description: `The suffix used for all cluster service records.`,
DiffSuppressFunc: suppressDiffForAutopilot,
Optional: true,
},
},
},
Expand Down

0 comments on commit 1d6d87c

Please sign in to comment.