Skip to content

Commit 3a4872b

Browse files
committed
feat: Adding storage profile configuration
closes #17
1 parent 329451d commit 3a4872b

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,38 @@ Type: `number`
413413

414414
Default: `0`
415415

416+
### storage\_profile\_blob\_driver\_enabled
417+
418+
Description: Is the Blob CSI driver enabled?
419+
420+
Type: `bool`
421+
422+
Default: `false`
423+
424+
### storage\_profile\_disk\_driver\_enabled
425+
426+
Description: Is the Disk CSI driver enabled?
427+
428+
Type: `bool`
429+
430+
Default: `true`
431+
432+
### storage\_profile\_file\_driver\_enabled
433+
434+
Description: Is the File CSI driver enabled?
435+
436+
Type: `bool`
437+
438+
Default: `true`
439+
440+
### storage\_profile\_snapshot\_controller\_enabled
441+
442+
Description: Is the Snapshot Controller enabled?
443+
444+
Type: `bool`
445+
446+
Default: `true`
447+
416448
### tags
417449

418450
Description: Map of tags for the resources

main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ resource "azurerm_kubernetes_cluster" "k8s" {
105105
}
106106
}
107107

108+
storage_profile {
109+
blob_driver_enabled = var.storage_profile_blob_driver_enabled
110+
disk_driver_enabled = var.storage_profile_disk_driver_enabled
111+
file_driver_enabled = var.storage_profile_file_driver_enabled
112+
snapshot_controller_enabled = var.storage_profile_snapshot_controller_enabled
113+
}
114+
108115
dynamic "linux_profile" {
109116
for_each = var.ssh_public_key == "" ? [] : [var.ssh_public_key]
110117
content {

vars.tf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,27 @@ variable "default_node_pool_node_soak_duration_in_minutes" {
329329
}
330330
default = 0
331331
}
332+
333+
variable "storage_profile_blob_driver_enabled" {
334+
type = bool
335+
default = false
336+
description = "Is the Blob CSI driver enabled?"
337+
}
338+
339+
variable "storage_profile_disk_driver_enabled" {
340+
type = bool
341+
default = true
342+
description = "Is the Disk CSI driver enabled?"
343+
}
344+
345+
variable "storage_profile_file_driver_enabled" {
346+
type = bool
347+
default = true
348+
description = "Is the File CSI driver enabled?"
349+
}
350+
351+
variable "storage_profile_snapshot_controller_enabled" {
352+
type = bool
353+
default = true
354+
description = "Is the Snapshot Controller enabled?"
355+
}

0 commit comments

Comments
 (0)