Skip to content

Commit

Permalink
Merge pull request #315 from kbst/gcs-fuse
Browse files Browse the repository at this point in the history
GKE: Support GCS fuse CSI driver add-on
  • Loading branch information
pst committed Aug 16, 2023
2 parents d31478c + 805a8fa commit d0404b3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions google/_modules/gke/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ resource "google_container_cluster" "current" {
network_policy_config {
disabled = false
}

gcs_fuse_csi_driver_config {
enabled = var.enable_gcs_fuse_csi_driver
}
}

network_policy {
Expand Down
5 changes: 5 additions & 0 deletions google/_modules/gke/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,8 @@ variable "monitoring_config_enable_components" {
description = "Monitoring config components to enable."
type = list(string)
}

variable "enable_gcs_fuse_csi_driver" {
description = "Whether to enable GCSFuse CSI driver addon."
type = bool
}
2 changes: 1 addition & 1 deletion google/_modules/gke/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
google = {
# https://registry.terraform.io/providers/hashicorp/google/latest
source = "hashicorp/google"
version = ">= 4.0.0"
version = ">= 4.76.0"
}

kubernetes = {
Expand Down
2 changes: 2 additions & 0 deletions google/cluster/configuration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,6 @@ 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)
}
2 changes: 2 additions & 0 deletions google/cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,6 @@ module "cluster" {

logging_config_enable_components = local.logging_config_enable_components
monitoring_config_enable_components = local.monitoring_config_enable_components

enable_gcs_fuse_csi_driver = local.enable_gcs_fuse_csi_driver
}

0 comments on commit d0404b3

Please sign in to comment.