Skip to content

Commit

Permalink
Merge pull request #317 from kbst/fix-gcs-fuse-default
Browse files Browse the repository at this point in the history
Fix gcs fuse csi default false to null
  • Loading branch information
pst authored Aug 16, 2023
2 parents d0404b3 + da11ef8 commit ca6a963
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions google/_modules/gke/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ resource "google_container_cluster" "current" {
disabled = false
}

gcs_fuse_csi_driver_config {
enabled = var.enable_gcs_fuse_csi_driver
dynamic "gcs_fuse_csi_driver_config" {
for_each = var.enable_gcs_fuse_csi_driver != null ? [1] : []

content {
enabled = var.enable_gcs_fuse_csi_driver
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion google/cluster/configuration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ locals {
monitoring_config_enable_components_lookup = lookup(local.cfg, "monitoring_config_enable_components", "SYSTEM_COMPONENTS")
monitoring_config_enable_components = compact(split(",", local.monitoring_config_enable_components_lookup))

enable_gcs_fuse_csi_driver = lookup(local.cfg, "enable_gcs_fuse_csi_driver", false)
enable_gcs_fuse_csi_driver = lookup(local.cfg, "enable_gcs_fuse_csi_driver", null)
}

0 comments on commit ca6a963

Please sign in to comment.