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:
T.V.VIGNESH 2020-06-01 11:27:14 +05:30 committed by GitHub
parent 037c14ef09
commit 6b0b147e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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
}
}