From 79dbe3721ee3d6507338d5c08a796c50116a0a0f Mon Sep 17 00:00:00 2001 From: pierre geeraert Date: Sun, 11 Oct 2026 12:44:27 +0100 Subject: [PATCH] fix bool error --- core/deployment.tf | 4 ++-- core/module.tf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)