From 510164a79c39655ac5276861d1ac797a9d75c220 Mon Sep 17 00:00:00 2001 From: Annirudh Prasad Date: Tue, 17 Dec 2024 16:11:20 -0800 Subject: [PATCH 1/2] feat: Enable GCS FUSE driver addon (#198) --- modules/app_gke/main.tf | 8 ++++++++ modules/app_gke/variables.tf | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/modules/app_gke/main.tf b/modules/app_gke/main.tf index f3718f9..ccbe5e8 100644 --- a/modules/app_gke/main.tf +++ b/modules/app_gke/main.tf @@ -14,6 +14,14 @@ resource "google_container_cluster" "default" { enable_intranode_visibility = true deletion_protection = var.deletion_protection + dynamic "addons_config" { + for_each = var.enable_gcs_fuse_csi_driver == true ? [1] : [] + content { + gcs_fuse_csi_driver_config { + enabled = true + } + } + } binary_authorization { evaluation_mode = "PROJECT_SINGLETON_POLICY_ENFORCE" diff --git a/modules/app_gke/variables.tf b/modules/app_gke/variables.tf index d67dfec..9c8f1e3 100644 --- a/modules/app_gke/variables.tf +++ b/modules/app_gke/variables.tf @@ -65,6 +65,12 @@ variable "enable_private_gke_nodes" { description = "Enable private nodes for the GKE cluster." } +variable "enable_gcs_fuse_csi_driver" { + type = bool + description = "Enable GCS Fuse CSI driver for the GKE cluster." + default = false +} + variable "deletion_protection" { description = "If the GKE Cluster should have deletion protection enabled. The GKE Cluster can't be deleted when this value is set to `true`." type = bool From 809a0c029ff612ad0578666c51994b6a46c3d99c Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 18 Dec 2024 00:11:45 +0000 Subject: [PATCH 2/2] chore(release): version 6.6.0 [skip ci] ## [6.6.0](https://github.com/wandb/terraform-google-wandb/compare/v6.5.2...v6.6.0) (2024-12-18) ### Features * Enable GCS FUSE driver addon ([#198](https://github.com/wandb/terraform-google-wandb/issues/198)) ([510164a](https://github.com/wandb/terraform-google-wandb/commit/510164a79c39655ac5276861d1ac797a9d75c220)) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4512ecb..b138d52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. +## [6.6.0](https://github.com/wandb/terraform-google-wandb/compare/v6.5.2...v6.6.0) (2024-12-18) + + +### Features + +* Enable GCS FUSE driver addon ([#198](https://github.com/wandb/terraform-google-wandb/issues/198)) ([510164a](https://github.com/wandb/terraform-google-wandb/commit/510164a79c39655ac5276861d1ac797a9d75c220)) + ### [6.5.2](https://github.com/wandb/terraform-google-wandb/compare/v6.5.1...v6.5.2) (2024-12-12)