Added PD CSI Driver Addon support (#84)
* Added PD CSI Driver Addon support Google supports CSI Driver for PD (https://cloud.google.com/kubernetes-engine/docs/how-to/gce-pd-csi-driver) which is also supported by TF Google Beta Provider (https://www.terraform.io/docs/providers/google/r/container_cluster.html#gce_persistent_disk_csi_driver_config). Added the same support to this module. * Added PD CSI Config to variables The PD CSI config has been added to variables to support PD CSI Driver (https://www.terraform.io/docs/providers/google/r/container_cluster.html#gce_persistent_disk_csi_driver_config)
This commit is contained in:
parent
037c14ef09
commit
6b0b147e7e
|
@ -75,6 +75,9 @@ resource "google_container_cluster" "cluster" {
|
|||
disabled = ! var.addons.istio_config.enabled
|
||||
auth = var.addons.istio_config.tls ? "AUTH_MUTUAL_TLS" : "AUTH_NONE"
|
||||
}
|
||||
gce_persistent_disk_csi_driver_config {
|
||||
enabled = var.addons.gce_persistent_disk_csi_driver_config
|
||||
}
|
||||
}
|
||||
|
||||
# TODO(ludomagno): support setting address ranges instead of range names
|
||||
|
|
|
@ -26,6 +26,7 @@ variable "addons" {
|
|||
tls = bool
|
||||
})
|
||||
network_policy_config = bool
|
||||
gce_persistent_disk_csi_driver_config = bool
|
||||
})
|
||||
default = {
|
||||
cloudrun_config = false
|
||||
|
@ -37,6 +38,7 @@ variable "addons" {
|
|||
tls = false
|
||||
}
|
||||
network_policy_config = false
|
||||
gce_persistent_disk_csi_driver_config = false
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue