File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -90,15 +90,15 @@ resource "google_container_cluster" "cluster" {
90
90
auth = var. addons . istio_config . tls ? " AUTH_MUTUAL_TLS" : " AUTH_NONE"
91
91
}
92
92
gce_persistent_disk_csi_driver_config {
93
- enabled = var. addons . gce_persistent_disk_csi_driver_config
93
+ enabled = var. enable_autopilot || var . addons . gce_persistent_disk_csi_driver_config
94
94
}
95
95
dynamic "gcp_filestore_csi_driver_config" {
96
96
# Pass the user-provided value when autopilot is disabled. When
97
97
# autopilot is enabled, pass the value only when the addon is
98
98
# set to true. This will fail but warns the user that autopilot
99
99
# doesn't support this option, instead of silently discarding
100
100
# and hiding the error
101
- for_each = ! var. enable_autopilot || (var . enable_autopilot && var. addons . gcp_filestore_csi_driver_config ) ? [" " ] : []
101
+ for_each = var. enable_autopilot && ! var. addons . gcp_filestore_csi_driver_config ? [] : [" " ]
102
102
content {
103
103
enabled = var. addons . gcp_filestore_csi_driver_config
104
104
}
You can’t perform that action at this time.
0 commit comments