diff --git a/core/deployment.tf b/core/deployment.tf index f98ab69..e8d7048 100644 --- a/core/deployment.tf +++ b/core/deployment.tf @@ -199,9 +199,9 @@ resource "kubernetes_deployment_v1" "automatic" { } dynamic "host_path" { - for_each = volume.value.host_path != null ? [1] : [] + for_each = volume.value.host_path ? [1] : [] content { - path = coalesce(volume.value.host_folderpath, null) + path = coalesce(volume.value.host_filepath, null) } } diff --git a/core/module.tf b/core/module.tf index e92dfa7..6064985 100644 --- a/core/module.tf +++ b/core/module.tf @@ -27,7 +27,7 @@ variable "kubernetes" { config_map = optional(bool, false) secret = optional(bool, false) host_path = optional(bool, false) - host_folderpath = optional(string) + host_filepath = optional(string) storage_class_name = optional(string, "nfs-storage-intelligent") annotations_fileType = optional(string)