diff --git a/README.md b/README.md index a7240e9..c0f6d61 100644 --- a/README.md +++ b/README.md @@ -413,6 +413,38 @@ Type: `number` Default: `0` +### storage\_profile\_blob\_driver\_enabled + +Description: Is the Blob CSI driver enabled? + +Type: `bool` + +Default: `false` + +### storage\_profile\_disk\_driver\_enabled + +Description: Is the Disk CSI driver enabled? + +Type: `bool` + +Default: `true` + +### storage\_profile\_file\_driver\_enabled + +Description: Is the File CSI driver enabled? + +Type: `bool` + +Default: `true` + +### storage\_profile\_snapshot\_controller\_enabled + +Description: Is the Snapshot Controller enabled? + +Type: `bool` + +Default: `true` + ### tags Description: Map of tags for the resources diff --git a/main.tf b/main.tf index b52e2e0..a9bd949 100644 --- a/main.tf +++ b/main.tf @@ -105,6 +105,13 @@ resource "azurerm_kubernetes_cluster" "k8s" { } } + storage_profile { + blob_driver_enabled = var.storage_profile_blob_driver_enabled + disk_driver_enabled = var.storage_profile_disk_driver_enabled + file_driver_enabled = var.storage_profile_file_driver_enabled + snapshot_controller_enabled = var.storage_profile_snapshot_controller_enabled + } + dynamic "linux_profile" { for_each = var.ssh_public_key == "" ? [] : [var.ssh_public_key] content { diff --git a/vars.tf b/vars.tf index 53c3062..6d9a7ef 100644 --- a/vars.tf +++ b/vars.tf @@ -329,3 +329,27 @@ variable "default_node_pool_node_soak_duration_in_minutes" { } default = 0 } + +variable "storage_profile_blob_driver_enabled" { + type = bool + default = false + description = "Is the Blob CSI driver enabled?" +} + +variable "storage_profile_disk_driver_enabled" { + type = bool + default = true + description = "Is the Disk CSI driver enabled?" +} + +variable "storage_profile_file_driver_enabled" { + type = bool + default = true + description = "Is the File CSI driver enabled?" +} + +variable "storage_profile_snapshot_controller_enabled" { + type = bool + default = true + description = "Is the Snapshot Controller enabled?" +}