Skip to content

Commit

Permalink
Remove bad AUTH_NONE default for GKE Istio Config
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
rileykarson authored and modular-magician committed Jun 10, 2019
1 parent 4fe1a4e commit 994a9c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions google-beta/resource_container_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,11 @@ func resourceContainerCluster() *schema.Resource {
Optional: true,
},
"auth": {
Type: schema.TypeString,
Default: "AUTH_NONE",
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"AUTH_NONE", "AUTH_MUTUAL_TLS"}, false),
Type: schema.TypeString,
Optional: true,
// We can't use a Terraform-level default because it won't be true when the block is disabled: true
DiffSuppressFunc: emptyOrDefaultStringSuppress("AUTH_NONE"),
ValidateFunc: validation.StringInSlice([]string{"AUTH_NONE", "AUTH_MUTUAL_TLS"}, false),
},
},
},
Expand Down
1 change: 1 addition & 0 deletions google-beta/resource_container_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2147,6 +2147,7 @@ resource "google_container_cluster" "with_istio_enabled" {
addons_config {
istio_config {
disabled = false
auth = "AUTH_NONE"
}
}
}`, clusterName)
Expand Down

0 comments on commit 994a9c3

Please sign in to comment.