Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Enable GCS FUSE driver addon #198

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions modules/app_gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions modules/app_gke/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading