fix bool error

This commit is contained in:
pierre geeraert
2026-10-11 12:44:27 +01:00
parent a0cf0cebe4
commit 79dbe3721e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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)
}
}
+1 -1
View File
@@ -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)