File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
beta-autopilot-private-cluster
beta-autopilot-public-cluster Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ resource "google_container_cluster" "primary" {
71
71
72
72
cluster_autoscaling {
73
73
dynamic "auto_provisioning_defaults" {
74
- for_each = var. create_service_account ? [1 ] : []
74
+ for_each = ( var. create_service_account || var . service_account != " " ) ? [1 ] : []
75
75
76
76
content {
77
77
service_account = local. service_account
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ resource "google_container_cluster" "primary" {
71
71
72
72
cluster_autoscaling {
73
73
dynamic "auto_provisioning_defaults" {
74
- for_each = var. create_service_account ? [1 ] : []
74
+ for_each = ( var. create_service_account || var . service_account != " " ) ? [1 ] : []
75
75
76
76
content {
77
77
service_account = local. service_account
You can’t perform that action at this time.
0 commit comments